anaconda-repo-cli is the command-line interface for managing channels, packages, and artifacts on Anaconda Platform (Self-hosted). Use it to script repository operations, integrate with CI/CD pipelines, or work with your repository directly from a shell application.
anaconda repo provides a modern replacement for the legacy conda repo entrypoint, which is considered deprecated. It uses Anaconda’s unified authentication (anaconda-auth), to eliminate separate credential configurations and provide a consistent experience across Anaconda Platform tools.Install the CLI
-
Install the
anaconda-repo-clipackage by opening Anaconda Prompt (Terminal on macOS/Linux) and running the following command: -
Verify your installation was successful and view which version you’ve installed:
Configure the CLI
Configuring the CLI tells Use This writes the site configuration to
anaconda-repo-cli which Anaconda Platform domain to use for channels, mirrors, and authentication.By default, the CLI connects to
anaconda.com. You can register additional domains (for Anaconda Platform (Self-hosted)) and set any registered domain as the default.anaconda sites add to register your deployment’s domain. Include --default to set the domain as the default:~/.anaconda/config.toml and sets it as the default site. You can verify the result with:Manual configuration (alternative)
Manual configuration (alternative)
If you prefer to edit the configuration file directly, add the following to
~/.anaconda/config.toml:Log in to Anaconda Platform with the CLI
To log in to Anaconda Platform using the CLI, run the following command:
Running
If you are using SSO, you will be prompted to log in to your SSO service.
anaconda login opens a browser tab to log you in to Anaconda Platform CLI. Once signed in, close your browser tab and return to your terminal.If you are using SSO, you will be prompted to log in to your SSO service.
Configure conda to use Anaconda Platform
The CLI comes with a configuration wizard that adds channels from your Anaconda Platform organization to your The wizard guides you through adding channels to your Your output will look something like this:
.condarc..condarc file. It shows you channels from your Anaconda Platform organization that are available for you to add to your .condarc. You must set at least one default channel for the wizard to continue.anaconda repo wizard only shows the first 100 channels in your organization by default. If you have more than 100 channels, you can use the —offsetand—limit` flags to paginate through your channels.Example command workflow
Basic usage
Log in to Anaconda
The Anaconda Repo CLI uses the same credentials as the Anaconda CLI. Authenticate once with the Anaconda CLI; the repo commands will then use your stored credentials.anaconda repo commands use your credentials automatically.
Check who is logged in
Display information about the currently signed-in user and default channel.List your channels
List all channels available to your account.Configuration
Configure the repo CLI using either theplugin.auth and site settings in ~/.anaconda/config.toml (via anaconda-auth) or, for self-hosted/legacy setups, the repo client config file.
Common configuration options
Parameter
Environment Variable
Description
Default
default_site—
Default Anaconda Platform site to use
—
url—
Repository base URL (self-hosted)
—
domainANACONDA_AUTH_DOMAINAuthentication domain (when using anaconda-auth)
anaconda.comExample configuration (self-hosted)
For self-hosted Anaconda or PSM, you can set a default site in~/.anaconda/config.toml:
Legacy repo config
When using the legacyconda repo entry point, configuration is stored in ~/.conda/repo-cli-config.yaml. Use conda repo config to view or set values.
The
For Package Security Manager (on-premises) workflows, see PSM user documentation.
config command is not available through anaconda repo. Use anaconda sites to manage site configuration instead.For Package Security Manager (on-premises) workflows, see PSM user documentation.