# leapview doctor

Inspect local authoring prerequisites without starting containers, repairing state, or connecting to upstream data. Add --target for remote readiness and identity checks; authentication is checked only with an explicit API token or LEAPVIEW_API_TOKEN. Skipped checks remain unverified.

## Usage

```sh
leapview doctor [flags]
```

## Behavior

| Side effect | Confirmation |
| --- | --- |
| `read` | `never` |

## Output

Default: `text`.

- `text`: lines
- `json`: document

## Options

| Flag | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `--docker-context` | string | `` | false | explicit local Docker context |
| `--docker-host` | string | `` | false | explicit local Docker Unix socket |
| `--format` | string | `text` | false | report format: text or json |
| `-h`, `--help` | bool | `false` | false | help for doctor |
| `--profile` | string | `` | false | local development profile name |
| `--profile-file` | string | `` | false | local development profile file |
| `--source-root` | string | `` | false | analytics source root to compile |
| `--target` | string | `` | false | explicit remote target URL or saved profile name |
| `--timeout` | duration | `30s` | false | overall diagnostic time budget (maximum 30s) |
| `--token` | string | `` | false | API token for the explicitly selected remote target |

## Inherited options

| Flag | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `--no-input` | bool | `false` | false | disable terminal prompts and automatic browser opening |

## Examples

```sh
leapview doctor
leapview doctor --source-root ./dashboards --format json
leapview doctor --target production --format json
```
