ks secret add

ks secret add

Adds a secret to all environments

Synopsis

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]

Examples

# 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

Options

  -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

SEE ALSO

Auto generated by spf13/cobra on 12-Jan-2023

Edit this page on GitHub