Installing the Anaconda Enterprise CLI

If you want to be able to create and share channels and packages from your Anaconda repository using conda commands, you need to download and install the Anaconda Enterprise CLI:

To install the CLI, run the following command, replacing anaconda.example.com with the fully-qualified domain name (FQDN) of your Anaconda Enterprise instance:

conda install -c https://anaconda.example.com/repository/conda/anaconda-enterprise anaconda-enterprise-cli=5.2.x

TIP: The anaconda-enterprise-cli package is also available on https://anaconda.org, if you have an account with the appropriate permissions.

Configuring the Anaconda Enterprise CLI

  1. To add the url of the Anaconda repository to the set of available sites, run the following command with the fully-qualified domain name (FQDN) of your Anaconda Enterprise instance:

    anaconda-enterprise-cli config set sites.master.url https://<your.domain.com>/repository/api
    
  2. Run the following command to configure the instance of Anaconda repository you will be using as the default site:

    anaconda-enterprise-cli config set default_site master
    
  3. Run the following command to see a consolidated view of the configuration:

    anaconda-enterprise-cli config view
    
  4. To configure conda channel_alias to retrieve packages from your local repository, run the following command, with the fully-qualified domain name (FQDN) of your Anaconda Enterprise instance:

    conda config --set channel_alias https://<your.domain.com>/repository/conda
    

The Anaconda Enterprise CLI reads configuration information from the following places:

System-level configuration: /etc/anaconda-platform/config.yml

User-level configuration: $INSTALL_PREFIX/anaconda-platform/config.yml and $HOME/.anaconda/anaconda-platform/config.yml

To change how it’s configured, modify the appropriate config.yml file(s), based on your needs.

NOTE: Changing configuration settings at the user level overrides any system-level configuration.

Logging in to the Anaconda Enterprise CLI

  1. Run this command to access the CLI:

    anaconda-enterprise-cli login
    
  2. Log in to the CLI using the same username and password that you use to log in the Anaconda Enterprise web interface:

    Username: <your-username>
    Password: <your-password>
    

You can now use conda commands to create and share channels and packages. See Configuring channels and packages for more information.