nais config get
nais config get NAME [flags]
This command shows details about a config, including its key-value pairs, workloads using it, and last modification info.
Options
--key- Name of the key to extract. Used with –to-file.
-o,--output- Format output (table or json).
--to-file- Write a single key’s value to a file. Requires –key. Binary values are decoded automatically.
Inherited options
--config- Specify the
PATHto the configuration file. --confirm-login- Ask for confirmation before starting required login flows. Interactive terminals only.
-e,--environment- Select or filter by Nais
ENVIRONMENT, for example dev-gcp or prod-gcp. Overrides the environment configured with nais defaults set environment. --no-colors- Disable colors in the output.
-t,--team- Select the Nais
TEAMthat owns the resources. Overrides the team configured with nais defaults set team. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.
Examples
# Get details for a config named my-config in environment dev.
$ nais config get my-config --environment dev
# Extract a binary value (e.g. keystore) to a file.
$ nais config get my-config --environment prod --key keystore.p12 --to-file ./keystore.p12