Linux command
pulumi-stack 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show current stack
pulumi stack
List all stacks
pulumi stack ls
Select stack
pulumi stack select [stack]
Create new stack
pulumi stack init [name]
Delete stack
pulumi stack rm [name]
Export stack state
pulumi stack export > state.json
说明
pulumi stack manages stacks. Stacks are isolated instances of infrastructure (dev, staging, prod). Each stack has its own state, configuration, and resources.
参数
- ls
- List stacks.
- select _name_
- Switch to stack.
- init _name_
- Create stack.
- rm _name_
- Delete stack.
- export
- Export state to JSON.
- import
- Import state from JSON.
- output _name_
- Get stack output.
- history
- Show deployment history.
- rename _name_
- Rename stack.
- tag _cmd_
- Manage stack tags.
FAQ
What is the pulumi-stack command used for?
pulumi stack manages stacks. Stacks are isolated instances of infrastructure (dev, staging, prod). Each stack has its own state, configuration, and resources.
How do I run a basic pulumi-stack example?
Run `pulumi stack` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does ls do in pulumi-stack?
List stacks.