pulumi config set preserves piped newlines with --raw
Introduced 2026-06-18 · score 0.94
HOW TO USE IT
When setting a value from stdin and preserving trailing newlines, pipe the input to `pulumi config set` with `--raw`.
printf 'hello\n' | pulumi config set --raw <key>WHY THIS HELPS
Set a configuration value from stdin while preserving its newline characters.
BEFORE THIS CHANGE
Without `--raw`, trailing newlines from stdin are stripped.
REQUIREMENTS AND LIMITATIONS
- Version: v3.247.0
- <key> (required): Configuration key to set.
- --raw (required): When setting the value through stdin, do not trim trailing newlines.
- The flag applies when input is piped through stdin.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.247.0
- https://www.pulumi.com/docs/iac/cli/commands/pulumi_config_set/
Check the installed version and the source before using it. Entry JSON