Skip to content
Open
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions src/commands/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const createEnvCommand = (program: BaseCommand) => {
)
.option('--json', 'Output environment variables as JSON')
.option('--site <name-or-id>', 'A project name or ID to target')
.addOption(new Option('--site-id <name-or-id>').hideHelp(true))
Comment thread
coderabbitai[bot] marked this conversation as resolved.
.addOption(
new Option('-s, --scope <scope>', 'Specify a scope')
.choices(['builds', 'functions', 'post-processing', 'runtime', 'any'])
Expand Down Expand Up @@ -47,6 +48,7 @@ export const createEnvCommand = (program: BaseCommand) => {
)
.option('--json', 'Output environment variables as JSON')
.option('-s, --site <name-or-id>', 'A project name or ID to target')
.addOption(new Option('--site-id <name-or-id>').hideHelp(true))
.description('Import and set environment variables from .env file')
.action(async (fileName: string, options: OptionValues, command: BaseCommand) => {
const { envImport } = await import('./env-import.js')
Expand All @@ -63,6 +65,7 @@ export const createEnvCommand = (program: BaseCommand) => {
)
.option('--json', 'Output environment variables as JSON')
.option('--site <name-or-id>', 'A project name or ID to target')
.addOption(new Option('--site-id <name-or-id>').hideHelp(true))
.addOption(new Option('--plain', 'Output environment variables as plaintext').conflicts('json'))
.addOption(
new Option('-s, --scope <scope>', 'Specify a scope')
Expand Down Expand Up @@ -94,6 +97,7 @@ export const createEnvCommand = (program: BaseCommand) => {
)
.option('--json', 'Output environment variables as JSON')
.option('--site <name-or-id>', 'A project name or ID to target')
.addOption(new Option('--site-id <name-or-id>').hideHelp(true))
.addOption(
new Option('-s, --scope <scope...>', 'Specify a scope (default: all scopes)').choices([
'builds',
Expand Down Expand Up @@ -131,6 +135,7 @@ export const createEnvCommand = (program: BaseCommand) => {
)
.option('--json', 'Output environment variables as JSON')
.option('-s, --site <name-or-id>', 'A project name or ID to target')
.addOption(new Option('--site-id <name-or-id>').hideHelp(true))
.addExamples([
'netlify env:unset VAR_NAME # unset in all contexts',
'netlify env:unset VAR_NAME --context production',
Expand Down
Loading