diff --git a/pages/common/pulumi-stack.md b/pages/common/pulumi-stack.md new file mode 100644 index 000000000..d6b1d1893 --- /dev/null +++ b/pages/common/pulumi-stack.md @@ -0,0 +1,32 @@ +# pulumi stack + +> Manage stacks and view stack state. +> More information: . + +- Create a new stack: + +`pulumi stack init {{stack_name}}` + +- View the stack state: + +`pulumi stack` + +- List known stacks: + +`pulumi stack ls` + +- Select an active stack: + +`pulumi stack select {{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}}` + +- Display help: + +`pulumi stack --help`