---
title: esc env clone | CLI commands
url: /docs/esc/cli/commands/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

* [esc env](/docs/esc/cli/commands/esc_env/)	 - Manage environments


