Skip to content
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

Update npx amplify generate config -> outputs - Gen2 doc #7344

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/gen2/reference/cli-commands/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ npx amplify generate <subcommand> --stack <cloudformation-stack-name>
npx amplify generate <subcommand> --app-id <app-id> --branch <git-branch-name>
```

## npx amplify generate config
## npx amplify generate outputs

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.

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

```bash
npx amplify generate config --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b
npx amplify generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b
```

#### Use with mobile applications

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

```bash
npx amplify generate config --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b --format json-mobile
npx amplify generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e1081b --format json-mobile
```

## npx amplify generate graphql-client-code
Expand Down
Loading