ks secret add

ks secret add

Adds a secret to all environments


Adds a secret to all environments.

Secrets are environment variables which value may vary across environments, such as ‘staging’, ‘prod’, and ‘dev’ environments.

The variable name will be added to all such environments, you will be asked its value for each environment

ks secret add <secret name> [secret value] [flags]


# Add a secret `PORT` to all environments
# and set its value to 3000 for the current one.
ks secret add PORT 3000

# Add a secret `PORT`without setting a default:
ks secret add PORT


  -h, --help       help for add
  -o, --optional   mark the secret as optional

Options inherited from parent commands

  -c, --config string   config file (default is $HOME/.config/keystone/keystone.yaml)
      --debug           debug output
      --env string      environment to use instead of the current one
  -q, --quiet           make the output machine readable
  -s, --skip            skip prompts and use default


Auto generated by spf13/cobra on 18-May-2022

Edit this page on GitHub