File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/pages/[platform]/reference/cli-commands Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,15 @@ npx ampx generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e108
231231Similar to ` sandbox ` , you can specify an alternate outputs file format by using ` --format ` :
232232
233233``` bash title="Terminal" showLineNumbers={false}
234- npx ampx generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b
234+ npx ampx generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b --format dart
235+ ```
236+
237+ #### Use with pre-existing branch
238+
239+ If you have a pre-existing branch that you want to generate outputs for, you can use the ` --branch ` with the ` --app-id ` flag:
240+
241+ ``` bash title="Terminal" showLineNumbers={false}
242+ npx ampx generate outputs --branch staging --app-id < your-amplify-app-id>
235243```
236244
237245## npx ampx generate graphql-client-code
@@ -266,7 +274,7 @@ Optional parameters:
266274#### Generate GraphQL client code using the Amplify App ID and branch.
267275
268276``` bash title="Terminal" showLineNumbers={false}
269- npx ampx generate graphql-client-code --app-id < your-amplify-app-id> --branch staging
277+ npx ampx generate graphql-client-code --app-id < your-amplify-app-id> --branch staging
270278```
271279
272280#### Generate GraphQL client code for a branch that is connected to Amplify
You can’t perform that action at this time.
0 commit comments