Skip to content

Commit c38a9a7

Browse files
sushpatgJacob Logan
authored andcommitted
Update npx amplify generate config -> outputs - Gen2 doc (#7344)
npx amplify generate config is throwing >>Unknown command: config Generates post deployment artifacts Commands: amplify generate outputs Generates amplify outputs amplify generate forms Generates UI forms amplify generate graphql-client-code Generates graphql API code amplify generate schema-from-database Generates typescript data schema from a SQL database
1 parent d812dc7 commit c38a9a7

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ npx amplify generate <subcommand> --stack <cloudformation-stack-name>
201201
npx amplify generate <subcommand> --app-id <app-id> --branch <git-branch-name>
202202
```
203203

204-
## npx amplify generate config
204+
## npx amplify generate outputs
205205

206206
Generate the client configuration file (such as `amplifyconfiguration.json`) for your frontend application to consume. This is intended to be used to manually generate a configuration file for an environment other than your personal cloud sandbox. For example, you might use it if you would like to verify something your coworker is seeing in their cloud sandbox, or to demonstrate frontend changes locally using a pre-existing "staging" branch.
207207

@@ -218,15 +218,15 @@ In addition to the required options noted in [`amplify generate`](#amplify-gener
218218
As mentioned above, you can specify a team member's cloud sandbox CloudFormation stack:
219219

220220
```bash
221-
npx amplify generate config --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b
221+
npx amplify generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b
222222
```
223223

224224
#### Use with mobile applications
225225

226226
Similar to `sandbox`, you can specify an alternate configuration file format by using `--format`:
227227

228228
```bash
229-
npx amplify generate config --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b --format json-mobile
229+
npx amplify generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b --format json-mobile
230230
```
231231

232232
## npx amplify generate graphql-client-code

0 commit comments

Comments
 (0)