Skip to content

pulumi state move | CLI commands ​

Move resources from one stack to another

Synopsis ​

Move resources from one stack to another

This command can be used to move resources from one stack to another. This can be useful when splitting a stack into multiple stacks or when merging multiple stacks into one.

URNs may contain wildcards (*, **), and --exclude can be used to leave matching resources in the source stack.

pulumi state move <urn>... [flags]

Options ​

      --dest string           The name of the stack to move resources to
  -x, --exclude stringArray   Specify a resource URN to leave in the source stack. Multiple resources can be specified using --exclude urn1 --exclude urn2. Wildcards (*, **) are also supported
      --force                 Use the existing provider in the destination stack for moved resources, even if its inputs differ from the provider in the source stack
  -h, --help                  help for move
      --include-parents       Include all the parents of the moved resources as well
      --parent string         URN of a resource in the destination stack to parent moved resources under. Mutually exclusive with --include-parents
      --source string         The name of the stack to move resources from
  -y, --yes                   Automatically approve and perform the move

Options inherited from parent commands ​

      --color string                 Colorize output. Choices are: always, never, raw, auto (default "auto")
  -C, --cwd string                   Run pulumi as if it had been started in another directory
      --disable-integrity-checking   Disable integrity checking of checkpoint files
  -e, --emoji                        Enable emojis in the output
  -Q, --fully-qualify-stack-names    Show fully-qualified stack names
      --logflow                      Flow log settings to child processes (like plugins)
      --logtostderr                  Log to stderr instead of to files
      --memprofilerate int           Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate
      --non-interactive              Disable interactive mode for all commands
      --otel-traces string           Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors
      --profiling string             Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively
      --tracing file:                Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
  -v, --verbose int                  Enable verbose logging (e.g., v=3); anything >3 is very verbose

SEE ALSO ​

Auto generated by spf13/cobra on 2-Dec-2026 ​

Content from the official Pulumi documentation (github.com/pulumi/docs).