Skip to main content

Usage

anaconda auth api-key [--at <SITE>]
Replace <SITE> with the Anaconda site name or domain.

Description

Prints the stored API key to stdout. Useful for:
  • Copying the key for use in CI/CD pipelines
  • Setting up non-interactive environments
  • Debugging authentication issues
If the API key has expired, the command raises TokenExpiredError. For more information, see Troubleshooting.

Options

Option
Description
--at <SITE>
Specify the Anaconda site (default: anaconda.com)
-h, --help
Show help for this command

Examples

Print the API key
anaconda auth api-key
Use in a script
export ANACONDA_AUTH_API_KEY=$(anaconda auth api-key)