# empiricalrun

CLI for Empirical - authenticate and manage your test generation workflows.

## Installation

```bash
npm install -g empiricalrun
```

## Usage

### Login

Authenticate with Empirical using OAuth:

```bash
empiricalrun login
```

This opens your browser for authentication. After signing in, the CLI stores your credentials securely.

### Logout

```bash
empiricalrun logout
```

### Check Authentication Status

```bash
empiricalrun whoami
```

## Configuration

The CLI can be configured using environment variables:

| Variable | Description | Default |
| --- | --- | --- |
| `EMPIRICAL_DASHBOARD_URL` | Dashboard URL for OAuth | `http://localhost:3000` |
| `EMPIRICAL_OAUTH_CLIENT_ID` | OAuth client ID | `cli` |

## Token Storage

Tokens are stored in `~/.empiricalrun/auth.json` with restricted permissions (600).
