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
231
231
Similar to ` sandbox ` , you can specify an alternate outputs file format by using ` --format ` :
232
232
233
233
``` 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>
235
243
```
236
244
237
245
## npx ampx generate graphql-client-code
@@ -266,7 +274,7 @@ Optional parameters:
266
274
#### Generate GraphQL client code using the Amplify App ID and branch.
267
275
268
276
``` 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
270
278
```
271
279
272
280
#### Generate GraphQL client code for a branch that is connected to Amplify
You can’t perform that action at this time.
0 commit comments