2025-03-14 21:59:59 -06:00
|
|
|
# pulumi config
|
|
|
|
|
|
|
|
|
|
> Manage configuration of a Pulumi stack.
|
|
|
|
|
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_config/>.
|
|
|
|
|
|
|
|
|
|
- View current configuration in JSON format:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`pulumi config {{[-j|--json]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- View configuration for a specified stack:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`pulumi config {{[-s|--stack]}} {{stack_name}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Get the value of a configuration key:
|
|
|
|
|
|
|
|
|
|
`pulumi config get {{key}}`
|
|
|
|
|
|
|
|
|
|
- Remove a configuration value:
|
|
|
|
|
|
|
|
|
|
`pulumi config rm {{key}}`
|
|
|
|
|
|
|
|
|
|
- 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 ...}}`
|