Get Anaconda command line interface (CLI)ΒΆ
Download and install the Anaconda CLI so you can create and share channels and packages from your Anaconda Repository using normal conda commands.
NOTE: This is necessary only the first time you use it.
Install anaconda-enterprise-cli from your Anaconda Repository:
conda install -c https://docs.anaconda.example.com:30071/user-guide/getting-started/ anaconda-enterprise-cli
NOTE: Replace
anaconda.example.comwith the actual URL to your Anaconda Repository.Configure anaconda-enterprise-cli
Add the url of the Anaconda Repository you will be using to the set of sites available to anaconda-enterprise-cli:
anaconda-enterprise-cli config set sites.example.url https://repo.anaconda.example.com:30089/api
NOTE: Replace repo.anaconda.example.com with the actual URL to your Anaconda Repository.
Configure it as the default site, the main instance of Anaconda Repository you will be using:
anaconda-enterprise-cli config set default_site example
Check the configuration:
anaconda-enterprise-cli config view
Log into your CLI:
anaconda-enterprise-cli login
Configure the conda channel_alias to retrieve packages from your local Repository:
conda config --set channel_alias https://repo.anaconda.example.com:30089/conda
NOTE: Replace
anaconda.example.comwith the actual URL to your Anaconda Repository.TIP: The anaconda-enterprise-cli package is also available on anaconda.org.
Log into your CLI using the same username and password that you use in the Enterprise web interface:
anaconda-enterprise-cli login Username: <your-username> Password: <your-password>
You can now create and share channels and packages.