Skip to content

Commit af19b68

Browse files
docs: add help, update docs for env:list --json flag (#5337)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 3f3f9c9 commit af19b68

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/commands/env.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ netlify env:list
135135
**Flags**
136136

137137
- `context` (*string*) - Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")
138+
- `json` (*boolean*) - Output environment variables as JSON
138139
- `plain` (*boolean*) - Output environment variables as plaintext
139140
- `scope` (*builds | functions | post-processing | runtime | any*) - Specify a scope
140141
- `debug` (*boolean*) - Print debugging information

src/commands/env/env-list.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export const createEnvListCommand = (program) =>
134134
normalizeContext,
135135
'dev',
136136
)
137+
.option('--json', 'Output environment variables as JSON')
137138
.addOption(new Option('--plain', 'Output environment variables as plaintext').conflicts('json'))
138139
.addOption(
139140
new Option('-s, --scope <scope>', 'Specify a scope')

0 commit comments

Comments
 (0)