Command referenceconda env list
conda env list command (Linux & Windows / Conda)
What it does
List all Conda environments and mark the currently active one. When people look up conda env list, they usually want safe flags, copyable examples, and how this Conda subcommand fits Anaconda or Miniconda workflows on Linux, Windows, and macOS. Syntax, options, and practical examples are below.
List all Conda environments and mark the currently active one.
Syntax
conda env list
Common options
| Flag / option | Meaning |
|---|---|
| --json | Print environments as JSON. |
Practical examples
Show all envs
conda env list
Lists names and prefixes; `*` marks the active environment.
Alias form
conda info --envs
Same environment listing through conda info.
Script-friendly
conda env list --json
Useful for automation that needs env names and paths.
Common mistakes
- Confusing the environment name with the folder name under `envs/`.
- Assuming a missing env name means Conda is broken — check prefix-based envs too.
Related commands
- conda infoShow Conda installation details, active environment, channels, and platform metadata.
- conda createCreate a new isolated Conda environment with an optional Python version and starter packages.
- conda activateActivate a named or path-based Conda environment in the current shell session.
- conda env removeDelete a Conda environment and all packages installed inside it.
- conda installInstall packages into the active or named Conda environment from configured channels.
- conda listList packages installed in the active or named Conda environment.
- aptSearch, install, update, and remove packages on Debian-based systems.
- conda env createCreate an environment from an environment.yml (or similar) specification file.
FAQ
What does conda env list do in Conda?
List all Conda environments and mark the currently active one.
Does conda env list work on Windows and Linux?
Yes. Conda runs on Linux, Windows, and macOS; shell activation differs slightly after `conda init`, but the CLI flags are the same.
What is a practical conda env list example?
Try `conda env list` — Lists names and prefixes; `*` marks the active environment.
Is mamba the same as conda env list?
Mamba is a faster drop-in solver for many Conda workflows. Prefer `mamba` only when it is installed; otherwise use the Conda commands on this page.
Browse the full Linux and Windows command reference to search more bash, CMD, PowerShell, Conda, and GitHub CLI commands.