commands.sh

pulumi config

all

Manage configuration of a Pulumi stack.

More info →

Options (2)

-j, --jsonboolean

View current configuration in JSON format

Example: pulumi config {{[-j|--json]}}
-s, --stackboolean

View configuration for a specified stack

Example: pulumi config {{[-s|--stack]}} {{stack_name}}

Examples (7)

View current configuration in JSON format

pulumi config [-j|--json]

View configuration for a specified stack

pulumi config [-s|--stack] stack_name

Get the value of a configuration key

Remove a configuration value

Set a value for a configuration key from a file

cat path/to/file | pulumi config set key

Set a secret value (e.g. API key) for a configuration key and store/display as ciphertext

pulumi config set --secret key S3cr37_value

Remove multiple configuration values from a specified configuration file

pulumi config --config-file path/to/file rm-all key1 key2 ...
made by @shridhargupta | data from tldr-pages