Skip to content

Commit

Permalink
docs: add help, update docs for env:list --json flag (#5337)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tinfoil-knight and kodiakhq[bot] authored Jan 6, 2023
1 parent 3f3f9c9 commit af19b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/commands/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ netlify env:list
**Flags**

- `context` (*string*) - Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")
- `json` (*boolean*) - Output environment variables as JSON
- `plain` (*boolean*) - Output environment variables as plaintext
- `scope` (*builds | functions | post-processing | runtime | any*) - Specify a scope
- `debug` (*boolean*) - Print debugging information
Expand Down
1 change: 1 addition & 0 deletions src/commands/env/env-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export const createEnvListCommand = (program) =>
normalizeContext,
'dev',
)
.option('--json', 'Output environment variables as JSON')
.addOption(new Option('--plain', 'Output environment variables as plaintext').conflicts('json'))
.addOption(
new Option('-s, --scope <scope>', 'Specify a scope')
Expand Down

1 comment on commit af19b68

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Package size: 259 MB

Please sign in to comment.