ana login to connect the Anaconda CLI to your account. Once you’re logged in, ana uses your saved credentials for commands that need authentication.
Log in
To log in through your browser, run:- Windows
- macOS/Linux
%USERPROFILE%\.anaconda\keyringIf your browser does not open, open the displayed link yourself. To stop ana from opening a browser automatically, set
ANA_OPEN_BROWSER=false.Usage and options
The login command also accepts an API key and the following options:ana auth login, ana auth logout, and ana auth whoami commands are aliases of ana login, ana logout, and ana whoami.
Log in with an API key
Create a key in API key management, then run:Non-interactive login for CI/CD
For automated workflows, store your API key in your CI provider’s secret storage and expose it asANACONDA_API_KEY. Pass the key to ana without an interactive prompt:
- Windows PowerShell
- macOS/Linux
- tells ana to read the key from standard input. --force replaces any credentials already saved on the runner. Omit --force if those credentials should be kept.
Setting
ANACONDA_AUTH_API_KEY alone does not log ana in. Run the login step above before commands that need authentication. For package publishing examples, see Anaconda GitHub Actions.