nais app set env

nais app set env NAME ENV_VARS [ENV_VARS...] [flags]

Updates environment variables on the application. Use KEY=VALUE to set and KEY- to remove. Changes are temporary and will be overwritten on next deploy.

Inherited options

--config
Specify the PATH to the configuration file.
-e, --environment
Specify the ENVIRONMENT to use for this command. Overrides the default environment from configuration.
--no-colors
Disable colors in the output.
-o, --output
Format output (table or json).
-t, --team
Specify the TEAM to use for this command. Overrides the default team from configuration.
-v, --verbose
Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.

Examples

# Set environment variables.
$ nais app set env my-app FOO=bar BAZ=qux -e dev

# Remove an environment variable.
$ nais app set env my-app FOO- -e dev

# Set and remove in one command.
$ nais app set env my-app NEW_VAR=hello OLD_VAR- -e dev