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
-e,--environment- Filter by environment.
--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 location for the configuration file.
--no-colors- Disable colors in the output.
-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
# 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