# olef doctor

Source: https://olef.dev/docs/reference/cli/doctor

Generated from **Olef 3.0.2**. [All commands](https://olef.dev/docs/reference/commands) · [Capabilities and requirements](https://olef.dev/docs/reference/capabilities)

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the [command catalog](https://olef.dev/docs/reference/commands#global-options).

## olef doctor

Diagnose (and optionally repair) the host↔device pipe: device state, APK version, port forward, server reachability, UiAutomation owners

```bash
olef doctor --help
```

Output: **human_or_json**.

| Argument | Description |
| --- | --- |
| `--app <APP>` | Also run the per-app interceptability verdict (`net check <app>`) |
| `--fix` | Attempt to repair the issues found |
| `--force` | Allow --fix to kill a competing (non-Olef) UiAutomation owner |
| `--json` | Emit the report as a single JSON object instead of human text |
