← 返回命令列表

Linux command

pulumi-state 命令

安全

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

常用示例

Delete resource from state

pulumi state delete [urn]

Unprotect resource

pulumi state unprotect [urn]

Rename resource

pulumi state rename [urn] [new_name]

Upgrade state schema

pulumi state upgrade

说明

pulumi state manipulates stack state directly. Use for state surgery when resources need manual removal or modification. Dangerous operations that bypass normal resource lifecycle.

参数

delete _urn_
Remove resource from state.
unprotect _urn_
Remove protection from resource.
rename _urn_ _name_
Rename resource in state.
upgrade
Upgrade state schema.
-s, --stack _name_
Target stack.
-y, --yes
Skip confirmation.
--force
Force operation.

FAQ

What is the pulumi-state command used for?

pulumi state manipulates stack state directly. Use for state surgery when resources need manual removal or modification. Dangerous operations that bypass normal resource lifecycle.

How do I run a basic pulumi-state example?

Run `pulumi state delete [urn]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does delete _urn_ do in pulumi-state?

Remove resource from state.