Anaconda Enterprise CLI#
The Anaconda Enterprise CLI is a collection of tools that you can use to interact with your instance of Anaconda Enterprise at the operating system (OS) level. Everything you need to use the CLI is contained in the
ae5-conda-latest-Linux-x86_64.sh script, which is included with the Gravity installation tarball, but is also made available for air-gapped and BYOK8s implementations. If necessary, follow the steps to install the CLI tools. Otherwise, start at Configuring the Anaconda Enterprise CLI.
Installing the Anaconda Enterprise CLI tools#
Open a terminal and download the script by running the following command (skip this step if you’ve downloaded the Gravity tarball):
curl -O https://airgap.svc.anaconda.com/misc/ae5-conda-latest-Linux-x86_64.sh
Make the script you just downloaded executable by running the following command:
chmod +x ae5-conda-latest-Linux-x86_64.sh
Execute the script by running the following command:
Configuring the Anaconda Enterprise CLI#
Before you can log in to your instance of Anaconda Enterprise, you’ll need to tell the CLI which site to reach out to and interact with. To configure your CLI, complete the following steps:
Add your Anaconda Enterprise Repository URL to the set of available sites by running the following command:
# Replace <FQDN> with the fully qualified domain name of your Anaconda Enterprise instance anaconda-enterprise-cli config set sites.main.url https://<FQDN>/repository/api
Run the following command to configure your instance of Anaconda Enterprise as the default site:
anaconda-enterprise-cli config set default_site main
Verify your configuration was successful by running the following command:
anaconda-enterprise-cli config view
Updating SSL certificates using the CLI#
If you updated the platform’s TLS/SSL certificate, you can use the AE CLI to configure the certificates for the repository using the following commands:
$ anaconda-enterprise-cli config set ssl_verify true # On Ubuntu $ anaconda-enterprise-cli config set sites.master.ssl_verify /etc/ssl/certs/ca-certificates.crt # On RHEL/CentOS $ anaconda-enterprise-cli config set sites.master.ssl_verify /etc/pki/tls/certs/ca-bundle.crt
Logging in to the Anaconda Enterprise CLI#
Access the CLI by running the following command:
Use your Anaconda Enterprise username and password to log in when prompted:
Username: <YOUR_USERNAME> Password: <YOUR_PASSWORD>
You can now configure access to your packages’ source mirror.
Once access is configured, you can begin mirroring channels and packages.
Configuration file locations#
The Anaconda Enterprise CLI reads configuration information from the following places:
To change how the CLI is configured, modify the appropriate
cli.yml files based on your needs.
Changing configuration settings at the user level overrides any system-level configuration.
Included CLI tools#
As stated before, the Anaconda Enterprise CLI uses multiple tools to interact with your instance and your repositories, and these tools are provided via the
The script contains the following tools: