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

# Login

> Authenticate with Nscale using browser-based device authorization.

Authenticate the CLI with your Nscale account. This opens a browser window to complete the login flow and stores your credentials locally.

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

Once authenticated, your credentials are saved and reused automatically for subsequent commands.

For CI/CD environments where browser-based login isn't possible, use the `NSCALE_SERVICE_TOKEN` environment variable instead:

```bash theme={null}
export NSCALE_SERVICE_TOKEN=<your-service-token>
nscale instances list --org <org-id>
```

See [Service Accounts](/docs/cli/serviceaccounts) for how to create and manage service account tokens.
