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

# Crossmint login

> Authenticate to the Crossmint platform

The login command authenticates you with the Crossmint platform. It allows you to access your account and manage API keys and projects through the CLI.

To use it, run the following command from your terminal

```bash theme={null}
crossmint login [options]
```

## Options

| Option                    | Description                                         |
| ------------------------- | --------------------------------------------------- |
| `-e, --env <environment>` | Environment to login to (`staging` or `production`) |

## Example

Start the login process:

```bash theme={null}
crossmint login
```

Or specify the environment directly to skip the prompt:

```bash theme={null}
crossmint login --env production
```

Select an environment:

```
? Select environment: (Use arrow keys)
> Production
  Staging
```

The CLI will open a browser window to authorize your device. If you're not signed in to Crossmint in the browser, you'll need to login first. Once the device is authorized, you can close the browser and return to the terminal.

<img src="https://mintcdn.com/crossmint/9uJPRLU6Ro7RXKau/images/console/authorize-device-success.png?fit=max&auto=format&n=9uJPRLU6Ro7RXKau&q=85&s=9129919842a4822956fd4bb2669e2c92" alt="Authorize Device Success" width="1708" height="1222" data-path="images/console/authorize-device-success.png" />

```
✅ Login successful! You are now authenticated in the Production environment.
```

You'll then be prompted to select a project:

```
? Select a project: (Use arrow keys)
> My Project
  Website Integration
  Mobile App
```
