> ## 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.

# anaconda auth api-key

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

## Usage

```bash theme={null}
anaconda auth api-key [OPTIONS]
```

## 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

<Tip>
  If the API key has expired, the command raises `TokenExpiredError`. For more information, see [Troubleshooting](/docs/cli-reference/anaconda-auth/troubleshooting).
</Tip>

## Options

<GTable cols="30% 70%">
  <GHead>
    <GRow>
      <GTH>Option</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`--at <SITE>`</GCell>
      <GCell>Specify the Anaconda site (default: `anaconda.com`)</GCell>
    </GRow>

    <GRow>
      <GCell>`-h, --help`</GCell>
      <GCell>Show help for this command</GCell>
    </GRow>
  </GBody>
</GTable>

## Examples

**Print the API key**

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

**Use in a script**

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