# Sign in

Canonical page: https://docs.ovok.com/cli/reference/login

{/* Written by pnpm docs:generate from the command's spec. Edit the spec, not this page. */}

```bash
ovok login [options]
```

Pipe the client secret in with `--client-secret-stdin`, so it stays out of your shell history. In CI, set `OVOK_BASE_URL`, `OVOK_CLIENT_ID` and `OVOK_CLIENT_SECRET` instead of signing in.

## Options [#options]

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `--client-id <id>` | string |  | The client application's ID; `OVOK_CLIENT_ID` when left out |
| `--client-secret-stdin` | boolean |  | Reads the client secret from stdin; `OVOK_CLIENT_SECRET` when left out |
| `--base-url <url>` | string | `https://api.sandbox.ovok.com` | The Ovok API to sign in to |
| `--profile <name>` | string | `default` | The name to save the profile as |

## Examples [#examples]

```bash
printf %s "$OVOK_CLIENT_SECRET" | ovok login --client-id <id> --client-secret-stdin
```
