CLI reference#

cx bootstrap#

Bootstrap a fresh conda installation into the prefix.

cx bootstrap [OPTIONS]

Options#

--force

Re-bootstrap even if the prefix already exists. Removes the existing prefix first.

--prefix DIR

Target prefix directory. Default: ~/.cx

-c, --channel CH

Channels to use. Can be specified multiple times. Default: conda-forge

-p, --package PKG

Additional packages to install beyond the built-in list. Can be specified multiple times.

-e, --exclude PKG

Packages to exclude from installation (along with their exclusive dependencies). Can be specified multiple times. Default: conda-libmamba-solver

--no-exclude

Disable all default exclusions. Installs everything including conda-libmamba-solver.

--no-lock

Ignore the embedded lockfile and perform a live solve instead. Requires network access for repodata fetching.

--lockfile PATH

Use an external lockfile instead of the embedded one. The file must be in rattler-lock v6 format.

Examples#

# Standard bootstrap
cx bootstrap

# Force re-bootstrap with latest packages (live solve)
cx bootstrap --force --no-lock

# Bootstrap with additional packages
cx bootstrap --package conda-build --package rattler-build

# Bootstrap into a custom location
cx bootstrap --prefix /opt/conda

cx status#

Print cx installation status (prefix, channels, packages, excludes). For conda’s own info, use cx info which passes through to conda info.

cx status [OPTIONS]

Options#

--prefix DIR

Target prefix directory. Default: ~/.cx


cx shell#

Activate an environment by spawning a new subshell. This is an alias for conda spawn.

cx shell [ENV] [OPTIONS]

Arguments#

ENV

Name of the environment to activate.

Examples#

# Activate an environment
cx shell myenv

# Leave the environment
exit    # or Ctrl+D

cx uninstall#

Completely remove cx: the conda prefix (including all named environments), the cx binary itself, and PATH entries from shell profiles.

cx uninstall [OPTIONS]

Options#

--prefix DIR

Target prefix directory. Default: ~/.cx

-y, --yes

Skip the interactive confirmation prompt.

What gets removed#

  1. The conda prefix directory (e.g. ~/.cx) including all named environments

  2. The cx binary (detected via the running executable path)

  3. PATH entries added by the installer from ~/.bashrc, ~/.zshrc, and ~/.config/fish/config.fish

Examples#

# Interactive uninstall (shows what will be removed, asks for confirmation)
cx uninstall

# Non-interactive uninstall
cx uninstall --yes

# Uninstall a non-default prefix
cx uninstall --prefix /opt/conda

Disabled commands#

The following conda commands are intentionally disabled in cx because they conflict with the conda-spawn activation model:


cx help#

Show a getting-started guide with cx-specific commands, common workflows, and links to documentation.

cx help

Pass-through commands#

Any command not listed above is passed through to the installed conda binary. cx replaces its own process with conda using execvp (Unix) or CreateProcess (Windows), so there is no overhead:

cx create -n myenv python=3.12
cx install -n myenv numpy
cx list -n myenv
cx env list
cx config --show
cx self update          # handled by conda-self