← 返回命令列表

Linux command

pulumi-down 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Destroy all resources (alias)

pulumi down

Destroy with auto-approval

pulumi down --yes

Destroy a specific stack

pulumi down --stack [name]

Destroy without previewing first

pulumi down --skip-preview --yes

Destroy and remove the stack

pulumi down --remove --yes

Preview only, don't destroy

pulumi down --preview-only

说明

pulumi down is an alias for pulumi destroy. Removes all resources managed by the current stack. Provides a more intuitive counterpart to pulumi up.

参数

-y, --yes
Automatically approve and perform the destroy after previewing it.
-s, --stack _name_
The name of the stack to operate on. Defaults to the current stack.
-f, --skip-preview
Do not calculate a preview before performing the destroy.
--preview-only
Only show a preview of the destroy, but don't perform the destroy itself.
--target _urn_
Destroy only the specified resource URN (and its dependencies).
-x, --exclude _urn_
Exclude the specified resource URN from the destroy.
--exclude-protected
Do not destroy protected resources. Destroy all other resources.
--remove
Remove the stack and its config file after all resources are deleted.
-p, --parallel _N_
Allow P resource operations to run in parallel at once (default 16).
-j, --json
Serialize the destroy diffs, operations, and overall output as JSON.

FAQ

What is the pulumi-down command used for?

pulumi down is an alias for pulumi destroy. Removes all resources managed by the current stack. Provides a more intuitive counterpart to pulumi up.

How do I run a basic pulumi-down example?

Run `pulumi down` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -y, --yes do in pulumi-down?

Automatically approve and perform the destroy after previewing it.