Skip to content

Headless support for amplify add codegen #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonnnnyw opened this issue Aug 9, 2019 · 5 comments
Open

Headless support for amplify add codegen #60

jonnnnyw opened this issue Aug 9, 2019 · 5 comments
Labels
amplify-codegen Issues on amplify-codegen feature-request New feature or request headless-support

Comments

@jonnnnyw
Copy link

jonnnnyw commented Aug 9, 2019

Is your feature request related to a problem? Please describe.
I am trying to add multi env support for externally linked APIs but this is currently not possible.

Describe the solution you'd like
Headless support for amplify add codegen that lets you pass the codegen config as an argument.

CONFIG="{\
\"generateCode\":true,\
\"codeLanguage\":\"typescript\",\
\"fileNamePattern\":\"src/graphql/**/*.ts\",\
\"generatedFileName\":\"src/API.ts\",\
\"generateDocs\":true\
}"

amplify add codegen --apiId xxxxxxxxxxxxxxxxx --config $CONFIG

Describe alternatives you've considered
Add multi env support for externally linked APIs that allows you to link each environment to a specific AppSync ID.

Additional context

@khitrenovich
Copy link

Possible duplicate of aws-amplify/amplify-cli#852

@tfmorris
Copy link

@khitrenovich It is a duplicate, but that issue was closed without addressing the request.

@AaronZyLee AaronZyLee transferred this issue from aws-amplify/amplify-cli Feb 3, 2021
@AaronZyLee AaronZyLee added amplify-codegen Issues on amplify-codegen feature-request New feature or request labels Feb 3, 2021
@phani-srikar
Copy link
Contributor

Hi @tfmorris Thank you for requesting this feature. We will look into this along with #56.

@rehrumesh
Copy link

rehrumesh commented Mar 12, 2021

hi @AaronZyLee @phani-srikar Any updates on this?

@christo-pr
Copy link

Hi guys!! Any updates on this? I'm using Amplify hosting for my app, and for now the only way to make it work was to include in git all the auto-generated files (aws-exports.js and graphl/ folder) and just build the app instead of amplifyPush --simple.

Worth to mention, I'm only using the codegen tool (no API category attach to my backend env), so if I could run the codegen tool headless would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amplify-codegen Issues on amplify-codegen feature-request New feature or request headless-support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants