# dome auth (/docs/cli/session/auth)

`dome auth` signs the CLI in to a Dome Platform host through browser-based SSO and reports who the current session belongs to. Logging in creates a [context](/docs/cli/session/context); every other command runs against the active one.

| Command           |                    |
| ----------------- | ------------------ |
| [Login](#login)   | `dome auth login`  |
| [Logout](#logout) | `dome auth logout` |
| [Status](#status) | `dome auth status` |

## Login [#login]

```bash
dome auth login
```

Authenticate with the Dome Platform.

Opens your default browser for authentication. After login, an identity session is created and all available org/tenant contexts are synced.

```bash
dome auth login
```

| Flag      | Type   | Description                            |
| --------- | ------ | -------------------------------------- |
| `--token` | string | API token for CI/headless environments |

## Logout [#logout]

```bash
dome auth logout
```

Sign out and remove stored credentials.

## Status [#status]

```bash
dome auth status
```

Show authentication status including active context, server, org, tenant, and role.