diff --git a/docs/commands/env.md b/docs/commands/env.md index a38da1edd65..1ba283df72e 100644 --- a/docs/commands/env.md +++ b/docs/commands/env.md @@ -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 diff --git a/src/commands/env/env-list.mjs b/src/commands/env/env-list.mjs index 2200deb09bb..0187fb2b7a5 100644 --- a/src/commands/env/env-list.mjs +++ b/src/commands/env/env-list.mjs @@ -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 ', 'Specify a scope')