# login Command - Nitro

> Authenticate the Nitro CLI interactively with `nitro login`: sign in through the browser, pick a default workspace, and persist the session locally.

Canonical source: https://chillicream.com/docs/nitro/cli/login

The `nitro login` command logs you in interactively through your default browser. After authenticating, the CLI prompts you to select a default workspace (skipped when you only have one) and persists the session locally so subsequent commands don't need `--api-key`.

For non-interactive environments such as CI/CD, skip `nitro login` entirely and authenticate per-invocation with `--api-key` instead (see [Global Options](https://chillicream.com/docs/nitro/cli/global-options)).

```
nitro login
```

## Arguments

| Argument | Description                                                                     |
| -------- | ------------------------------------------------------------------------------- |
| <url>    | URL of the Nitro backend. Only needed for self-hosted or dedicated deployments. |

## Examples

Log in against the default Nitro Cloud:

```
nitro login
```

Log in against a self-hosted or dedicated deployment using the positional argument:

```
nitro login "<nitro-backend-url>"
```

[Edit this page on GitHub](https://github.com/ChilliCream/graphql-platform/edit/main/website/content/docs/nitro/cli/login.md)

Last updated on **June 30, 2026** by **Tobias Tengler**
