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] [-f] [--json]
[--console CONSOLE] [-v] [-q] [-d] [-y]
destination
Positional Arguments#
- destination
New name for the conda environment.
Named Arguments#
- -f, --force
--force is deprecated and will be removed in 25.3. Use --yes instead.
Target Environment Specification#
- -n, --name
Name of environment.
- -p, --prefix
Full path to environment location (i.e. prefix).
Output, Prompt, and Flow Control Options#
- --json
Report all output as json. Suitable for using conda programmatically.
- --console
Select the backend to use for normal output rendering.
- -v, --verbose
Can be used multiple times. Once for detailed output, twice for INFO logging, thrice for DEBUG logging, four times for TRACE logging.
- -q, --quiet
Do not display progress bar.
- -d, --dry-run
Only display what would have been done.
- -y, --yes
Sets any confirmation values to 'yes' automatically. Users will not be asked to confirm any adding, deleting, backups, etc.
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