1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pulumi-stack.md

37 lines
661 B
Markdown
Raw Normal View History

# pulumi stack
> Manage stacks and view stack state.
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_stack/>.
- Create a new stack:
`pulumi stack init {{stack_name}}`
- View the stack state:
`pulumi stack`
- List stacks in the current project:
`pulumi stack ls`
- List stacks across all projects:
`pulumi stack ls --all`
- Select an active stack:
`pulumi stack select {{stack_name}}`
- Delete a stack:
`pulumi stack rm {{stack_name}}`
- Show stack outputs, including secrets, in plaintext:
`pulumi stack output --show-secrets`
- Export the stack state to a JSON file:
`pulumi stack export --file {{path/to/file.json}}`