pulumi state promote converts stateful snippets into Pulumi program code
Introduced 2026-08-28 · score 0.94
HOW TO USE IT
When promoting a stateful snippet, run `pulumi state promote <snippet-name>` from a real Pulumi project; it generates program code, prints the files, and removes the snippet while retaining its resources in stack state.
pulumi state promote <snippet-name>WHY THIS HELPS
Convert a stateful snippet into Pulumi program code.
REQUIREMENTS AND LIMITATIONS
- Version: v3.260.0
- <snippet-name> (required): The snippet’s logical name.
- -s, --stack <string>: Stack to operate on; defaults to the current stack.
- -y, --yes: Skip confirmation prompts.
- Prerequisite: Run from a real Pulumi project so the generated code has a backing project runtime.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.260.0
- https://www.pulumi.com/docs/iac/cli/commands/pulumi_state_promote/
Check the installed version and the source before using it. Entry JSON