Skip to main content
The Anaconda Server command line interface (CLI) is a tool that can be used to do the following:
  • Install packages from private or authenticated channels
  • Configure channels, default channels, and the channel alias
  • Upload assets
  • Create mirrors
This topic provides guidance on the following actions:

Installing the conda repo CLI

Install the Anaconda Server CLI conda-repo-cli package:
The Anaconda Server administrators may also choose to mirror this package into a channel on the server. Contact your administors to determine if conda-repo-cli can be installed from an Anaconda Server channel.

Conda repo configuration

Follow these steps to configure your conda repo site:
  • Use the following commands if you are using SSL:
  • Use the following commands if you are not using SSL:
For example, SITE\_NAME may be anaconda-repo and DOMAIN may be anaconda-repo.company.com.

OAuth and SAML configuration

If you are using OAuth or SAML, run the following command to go through the standard SAML authorization flow after configuring your site:
when you run conda repo login, a browser window will open for you to log in to Anaconda Server. After login has completed, the window will display “Token Received.” You can then close the browser window and continue to use the CLI.

Logging in

Run the following code to log in to Anaconda Server:
Now you will be able to install packages from private and authenticated channels you have access to.

Using the wizard

Use the Anaconda Server CLI conda repo wizard command to configure channels and default_channels while setting a channel_alias for them. You can also use the command to backup and restore your .condarc file.
  1. Log in to your instance of Anaconda Server.
  2. Run the command:
  3. Enter the channels you want to set to your default_channels list, separated by a space. You must set a default channel before proceeding.
  4. Enter the channels you want to add to the channels list, separated by a space. Leave this blank if you do not need to add any additional channels.
Channel names must be exact. Misspelled channel names will not be accepted, for both the default_channels and channels lists. If you enter a channel name that does not match an existing channel in your instance, a warning appears and no channel is added to the list.
Your output will look something like this:
You can now restore your .condarc file at any time, if necessary. To do this, run the command:
This overwrites your current .condarc configuration with the configuration you’ve backed up.

Further assistance

For a more robust view of conda repo commands, run the command:
Similarly, appending --help or the shorthand -h to a command will provide you with further actions you can take, such as the following: