> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ana auth api-key

## Usage

```bash theme={null}
ana auth api-key
```

## Description

Prints the API key that `ana login` saved for your Anaconda account. Use it to:

* Copy the key for use in CI/CD pipelines
* Pass the key to tools that read it from an environment variable, such as Docker builds
* Debug authentication issues

If you are not logged in, the command displays a message telling you to run `ana login`.

> [!WARNING]
>
> This command prints the full secret. Do not run it in an unmasked CI log or share its output.

## Options

Option

Description

`-h, --help`

Show help for this command

## Examples

**Print the API key**

```bash theme={null}
ana auth api-key
```

**Use in a script**

```bash theme={null}
export ANACONDA_AUTH_API_KEY="$(ana auth api-key)"
```
