Skip to content

pulumi stack

ls

  • List all stacks
pulumi stack ls

select

  • Switch the current workspace to the given stack
pulumi stack select "dev"

output

  • Get an output property of the execution of a stack
pulumi stack output "url"

init

# Create a new empty stack
pulumi stack init "prod"

# Create a stack based on an existing yaml config (in this case Pulumi.foo.yaml)
pulumi stack init --copy-config-from foo --stack foo

rm

pulumi stack rm "prod"
pulumi stack rm "prod" --force # remove all resources if any