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

> [!NOTE]
>
> `ana org login` creates the Anaconda.org token that most `ana org` commands use. This token is separate from the API key that `ana login` saves for your Anaconda account. To learn which commands need which login, see [Logging in](https://anaconda.com/docs/cli-reference/anaconda-cli/commands/org#logging-in).

## Usage

```bash theme={null}
ana org login [OPTIONS]
```

## Description

Authenticates a user with Anaconda.org and stores the resulting token locally. After you log in, subsequent `ana org` commands use the stored credentials automatically.

`ana org login` creates the token from the API key that `ana login` saved, so it doesn't open your browser or ask you to sign in again. If you aren't logged in with `ana login`, ana prompts you to log in first.

If you already have an Anaconda.org token, the command warns that logging in again removes the previous token and asks whether to continue. If you answer **n**, the command stops and reports that `anaconda` exited with code 1. Your existing token is not changed.

## Options

Option

Default

Description

`--hostname <HOSTNAME>`

System hostname

Specify a custom host name for this login session

`--username <USERNAME>`

(Deprecated) Specify your username; if omitted, you are prompted

`--password <PASSWORD>`

(Deprecated) Specify your password; if omitted, you are prompted

`-h`

Show help for this command

## Examples

**Log in interactively**

```bash theme={null}
ana org login
```

**Log in with a custom hostname**

```bash theme={null}
ana org login --hostname my-build-server
```
