1. Docs
  2. Pulumi ESC
  3. ESC CLI
  4. Commands
  5. esc env clone

esc env clone

    Clone an existing environment into a new environment.

    Synopsis

    Clone an existing environment into a new environment.

    This command clones an existing environment with the given identifier into a new environment. If a project is omitted from the new environment identifier the new environment will be created within the same project as the environment being cloned.

    esc env clone [<org-name>/]<src-project-name>/<src-environment-name> [<dest-project-name>/]<dest-environment-name> [flags]
    

    Options

      -h, --help                help for clone
          --preserve-access     preserve the same team access on the environment being cloned
          --preserve-env-tags   preserve any tags on the environment being cloned
          --preserve-history    preserve history of the environment being cloned
          --preserve-rev-tags   preserve any tags on the environment revisions being cloned
    

    Options inherited from parent commands

          --env string   The name of the environment to operate on.
    

    SEE ALSO

    Auto generated by spf13/cobra on 13-Sep-2024
      PulumiUP 2024. Watch On Demand.