Skip to content

Commit 4b1d8d4

Browse files
authored
update generate outputs command reference (#8258)
1 parent 5661a0b commit 4b1d8d4

File tree

1 file changed

+10
-2
lines changed
  • src/pages/[platform]/reference/cli-commands

1 file changed

+10
-2
lines changed

src/pages/[platform]/reference/cli-commands/index.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,15 @@ npx ampx generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e108
231231
Similar 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

0 commit comments

Comments
 (0)