conda rename#

Rename an existing environment.

This command renames a conda environment via its name (-n/--name) or its prefix (-p/--prefix).

The base environment and the currently-active environment cannot be renamed.

usage: conda rename [-h] [-n ENVIRONMENT | -p PATH] [--force] [-d] destination

Positional Arguments#

destination

New name for the conda environment.

Named Arguments#

--force

Force rename of an environment.

-d, --dry-run

Only display what would have been done by the current command, arguments, and other flags.

Target Environment Specification#

-n, --name

Name of environment.

-p, --prefix

Full path to environment location (i.e. prefix).

Examples:

conda rename -n test123 test321

conda rename --name test123 test321

conda rename -p path/to/test123 test321

conda rename --prefix path/to/test123 test321