# Auth

Source: https://docs.elnora.ai/docs/cli/auth
Last modified: 2026-09-08T22:34:42-06:00

> Authenticate the CLI and manage profiles (CLI-only).

Authenticate the CLI and manage profiles (CLI-only).

## elnora auth login

Set up authentication by saving an API key to a profile

*CLI-only*

```bash
elnora auth login [options]
```

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `apiKey` | string | no | Elnora API key (elnora_live_...) |
| `apiKeyStdin` | boolean | no | Read the API key from stdin instead of an argument Default: `false`. |
| `profile` | string | no | Profile name to save key under Default: `default`. |

## elnora auth logout

Remove saved credentials

*Destructive · CLI-only*

```bash
elnora auth logout [options]
```

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `all` | boolean | no | Remove all profiles Default: `false`. |
| `profile` | string | no | Profile name to remove (default: 'default') |

## elnora auth profiles

List all configured profiles

*Read-only · CLI-only*

```bash
elnora auth profiles
```

## elnora auth status

Verify API key and show connection info

*Read-only · CLI-only*

```bash
elnora auth status
```

## elnora auth validate

Validate a JWT or API key token

*CLI-only*

```bash
elnora auth validate [options]
```

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `token` | string | no | Token to validate (defaults to current API key) |
