Skip to content

1ctl config

1ctl config manages non-sensitive key-value pairs such as NODE_ENV, LOG_LEVEL, ports, feature flags, and service hostnames.

Use 1ctl secret for passwords, tokens, API keys, and credentials.

1ctl config

env, environment

Flag Type Required Default Description
--help, -h boolean No — Show help
Command Description
create Create a new environment
list List all environments for a deployment
unset Remove a specific key from an environment
Use config for Use secret for
NODE_ENV Database passwords
PORT API keys
LOG_LEVEL JWT signing secrets
Public service hostnames Private tokens

--env is repeatable:

Terminal window
1ctl config create --env NODE_ENV=production --env LOG_LEVEL=info

config create updates the Deployment spec and ConfigMap. Replacement pods pick up the new values after rollout.