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

## Usage

```bash theme={null}
anaconda org auth <ACTIONS> [OPTIONS]
```

Replace \<ACTIONS> with one of the actions listed below.

## Description

Manages authorization tokens for the Anaconda API. Tokens provide scoped access for CI/CD pipelines, automated uploads, and other non-interactive workflows. Exactly one action must be specified.

For documentation for the `anaconda-auth` command library, see the [anaconda-auth CLI reference](https://anaconda.com/docs/cli-reference/anaconda-auth/getting-started.md).

> [!NOTE]
>
> This command manages API authorization tokens, which are different from the session credentials stored by `anaconda login`. Use `anaconda auth --create` to generate tokens for automation and `anaconda login` for interactive sessions.

## Actions

Action

Description

`--create`

Create a new authorization token

`--list`

List all authorization tokens

`--remove <TOKEN_ID>`

Remove one or more authorization tokens

`--info`

Show information about the current token

`--list-scopes`

List all available scopes

## Options

Option

Default

Description

`-n, --name <NAME>`

`binstar_token:<hostname>`

Name for the token

`-o, --org <ORGANIZATION>`

Set the token owner to an organization

`--strength <STRENGTH>`

`strong`

Token strength: `strong` or `weak`

`-s, --scopes <SCOPE>`

Scopes for the token (can be specified multiple times)

`--url <URL>`

`http://anaconda.org`

Application URL for the token

`--max-age <SECONDS>`

Maximum age of the token in seconds

`--out <FILE>`

stdout

Output file for the token

`-h`

Show help for this command

## Examples

**List available scopes**

```bash theme={null}
anaconda org auth --list-scopes
```

**Create a token with specific scopes**

```bash theme={null}
anaconda org auth --create --name my-ci-token --scopes "repos conda:download"
```

**List all tokens**

```bash theme={null}
anaconda org auth --list
```

**Show information about the current token**

```bash theme={null}
anaconda org auth --info
```

**Remove a token**

```bash theme={null}
anaconda org auth --remove my-ci-token
```

**Create an organization token**

```bash theme={null}
anaconda org auth --create --org my-org --name org-ci-token
```

**Create an organization token with repository access**

```bash theme={null}
anaconda org auth --create --org my-org --name org-ci-token --scopes "repos"
```

**Create a short-lived token**

```bash theme={null}
anaconda org auth --create --name short-lived-token --max-age 3600
```
