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

# authenticate

> Authenticate using an OAuth refresh token

The `authenticate` command logs into a Diversion account using a pre-existing OAuth refresh token, without opening a browser. Use it in scripts and CI environments where the interactive [login](/cmd-ref/login) flow is not possible.

```bash theme={null}
dv authenticate <refresh_token> [--enterprise <enterprise>]
```

`<refresh_token>` is an OAuth refresh token previously provided by an authenticated client.

`[--enterprise <enterprise>]` authenticates against a specific enterprise account. Most users can omit this.

For interactive use, prefer [`dv login`](/cmd-ref/login).
