0

I follow the tutorial and managed to properly generate models. I wonder how I can choose the destination where models are generated. By default it is lib/models.

How can I change the destination and split generated files between different folders?

Chris
  • 839
  • 1
  • 12
  • 30

1 Answers1

1

For now it is not possible, but the feature was requested and can be tracked here.

Update 24.05.2023.
as @rleffler mentioned now it is supported:

amplify codegen models --output-dir your/path

Unfortunately, models are still generated into lib/modelswhen you run amplify pull so remember to removed them.

Chris
  • 839
  • 1
  • 12
  • 30
  • UPDATE: This is now supported. From the issue: This feature is now supported. You can specify an --output-dir when running amplify codegen models in order to specify where the files will be rendered. Marking this issue as closed. – rleffler May 23 '23 at 14:47