Conda provides a comprehensive set of commands for managing packages, environments, and configurations. This page provides an overview of all available commands organized by category.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/conda/conda/llms.txt
Use this file to discover all available pages before exploring further.
Command Structure
All conda commands follow the pattern:Use
conda <command> --help to see detailed help for any command.Command Categories
Package Management
Install, update, remove, and search for packages
Environment Management
Create, activate, and manage conda environments
Configuration
Configure conda settings and channels
Information
View system information and package details
Maintenance
Clean caches and manage conda itself
Advanced
Advanced operations and utilities
Package Management
Commands for installing, updating, removing, and searching for packages.| Command | Description | Common Usage |
|---|---|---|
install | Install packages into an environment | conda install numpy |
update (or upgrade) | Update packages to latest compatible versions | conda update scipy |
remove (or uninstall) | Remove packages from an environment | conda remove pandas |
search | Search for packages using MatchSpec format | conda search "numpy>=1.12" |
list | List installed packages in an environment | conda list |
Package Management Patterns
Package Management Patterns
Installing PackagesUpdating PackagesRemoving Packages
Environment Management
Commands for creating and managing isolated conda environments.| Command | Description | Common Usage |
|---|---|---|
create | Create a new conda environment | conda create -n myenv python=3.11 |
env | Parent command for environment operations | conda env list |
env create | Create environment from YAML file | conda env create -f environment.yml |
env list | List all conda environments | conda env list |
env remove | Remove an environment | conda env remove -n myenv |
env update | Update environment from YAML file | conda env update -f environment.yml |
env export | Export environment to YAML file | conda env export > environment.yml |
env config | Configure environment-specific settings | conda env config vars list |
activate | Activate a conda environment | conda activate myenv |
deactivate | Deactivate current environment | conda deactivate |
rename | Rename an existing environment | conda rename -n oldenv newenv |
Environment Management Patterns
Environment Management Patterns
Creating EnvironmentsWorking with Environments
Configuration
Commands for managing conda configuration settings.| Command | Description | Common Usage |
|---|---|---|
config | Modify configuration values in .condarc | conda config --show |
Configuration Patterns
Configuration Patterns
Viewing ConfigurationModifying ConfigurationConfiguration Scopes
Information
Commands for viewing information about conda, environments, and packages.| Command | Description | Common Usage |
|---|---|---|
info | Display information about conda installation | conda info |
list | List installed packages | conda list |
search | Search for packages with detailed info | conda search numpy --info |
compare | Compare packages between environments | conda compare env1 env2 |
export | Export environment specification | conda export |
Information Patterns
Information Patterns
System InformationPackage Information
Maintenance
Commands for cleaning caches and maintaining conda.| Command | Description | Common Usage |
|---|---|---|
clean | Remove unused packages and caches | conda clean --all |
notices | View and manage conda notices | conda notices |
Maintenance Patterns
Maintenance Patterns
Cleaning CachesViewing Notices
Advanced
Advanced commands for specialized operations.| Command | Description | Common Usage |
|---|---|---|
run | Run a command in a conda environment | conda run -n myenv python script.py |
init | Initialize conda for shell interaction | conda init bash |
package | Create and extract conda packages | conda package -w myenv |
commands | List all available conda commands | conda commands |
Advanced Patterns
Advanced Patterns
Running CommandsShell IntegrationPackage Operations
Common Conventions
Environment Targeting
Most commands accept options to specify which environment to operate on:| Option | Description | Example |
|---|---|---|
-n NAME or --name NAME | Target environment by name | conda install -n myenv numpy |
-p PATH or --prefix PATH | Target environment by path | conda install -p /path/to/env numpy |
| (none) | Use currently active environment | conda install numpy |
Output Formats
Many commands support different output formats:| Option | Description | Usage |
|---|---|---|
--json | Output in JSON format | conda list --json |
--quiet or -q | Suppress output | conda install -q numpy |
--verbose or -v | Increase output verbosity | conda install -vv numpy |
Dry Run and Safety
| Option | Description | Usage |
|---|---|---|
--dry-run | Show what would happen without executing | conda install --dry-run numpy |
--yes or -y | Automatically confirm prompts | conda remove -y numpy |
Channel Options
| Option | Description | Example |
|---|---|---|
-c CHANNEL or --channel CHANNEL | Add channel for this command | conda install -c conda-forge package |
--override-channels | Use only specified channels | conda search --override-channels -c main numpy |
Plugin Commands
Conda supports plugin-based subcommands through its plugin system. Additional commands may be available depending on installed plugins. Useconda commands to see all available commands including those from plugins.
Deprecated Commands
Some commands have aliases for backward compatibility:conda upgrade→ Useconda updateconda uninstall→ Useconda remove
Getting Help
Next Steps
Installation Commands
Learn about package installation options
Environment Commands
Master environment management
Configuration Guide
Configure conda for your workflow
Advanced Features
Python API and plugin development