> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# momentic-mobile doctor

> Check the Momentic Mobile CLI installation and project for problems.

Runs a read-only health check of your Momentic mobile setup and prints a
section-by-section report: CLI version, authentication, connectivity to the
Momentic API (including TLS interception, WebSocket support, clock skew, and
proxy settings), environment, the mobile toolchain (adb, bundled Appium drivers,
and the local-emulator-only Java and `ANDROID_HOME` setup), reachability of the
remote emulator provider, installed browsers (including missing OS libraries
needed to launch them), and your project configuration (deprecated options,
legacy file format, agent versions that have a newer release available, and
tests that target a local emulator or simulator when the local toolchain for
their platform is missing).

Problems are listed at the end with a suggested fix for each, and the command
exits non-zero when any are found. Warnings do not affect the exit code.

```bash theme={null}
npx momentic-mobile doctor
```

## Options

<ParamField path="--api-key <key>" type="string">
  Momentic API key. Defaults to `MOMENTIC_API_KEY` or the key saved by
  `momentic-mobile login`.
</ParamField>

<ParamField path="-c, --config <config>" type="string">
  Path to the Momentic configuration file. Defaults to `momentic.config.yaml` in
  the current directory.
</ParamField>

<ParamField path="--fix" type="boolean">
  Remove deprecated options from the project configuration file.
</ParamField>

<ParamField path="--json" type="boolean">
  Output the report as JSON. Useful for attaching to support tickets.
</ParamField>

## Examples

Check the installation and project:

```bash theme={null}
npx momentic-mobile doctor
```

Generate a machine-readable report for a support ticket:

```bash theme={null}
npx momentic-mobile doctor --json
```
