2025-02-15 14:00:04 -08:00
|
|
|
# pulumi state
|
|
|
|
|
|
|
|
> Edit the current stack's state.
|
|
|
|
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_state/>.
|
|
|
|
|
|
|
|
- Delete a resource from the current stack's state:
|
|
|
|
|
|
|
|
`pulumi state delete`
|
|
|
|
|
|
|
|
- Move a resource from the current stack to another:
|
|
|
|
|
|
|
|
`pulumi state move {{resource_urn}} --dest {{stack_name}}`
|
|
|
|
|
|
|
|
- Rename a resource in the current stack's state:
|
|
|
|
|
|
|
|
`pulumi state rename`
|
|
|
|
|
|
|
|
- Repair an invalid state:
|
|
|
|
|
|
|
|
`pulumi state repair`
|
|
|
|
|
2025-02-28 23:46:45 -08:00
|
|
|
- Edit a stack's state in the editor specified by the `EDITOR` environment variable:
|
|
|
|
|
|
|
|
`pulumi state edit --stack {{stack_name}}`
|
|
|
|
|
2025-02-15 14:00:04 -08:00
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`pulumi state --help`
|