qa doctor checks which mo and qa executables your shell finds, how the
running copy was installed, whether credentials are saved, and whether the
Momentic server is reachable. Include the output when you report a CLI problem.
--json for machine-readable output:
Checks
The report renders labeled sections with a status for each check:qa: the CLI version (checked against the latest release), the Node.js version, the install method (npmorstandalone), and the resolved binary path.Executables on PATH: everyqa,mo, andmomenticexecutable on yourPATH, in order. On macOS and Linux, the first match for each name is the one your shell runs. Each entry shows the executable’s real path, so npm launcher shims (cli.cjs) are distinguishable from standalone binaries.Authentication: the auth directory, the saved credentials file, and a live check of the API key against the Momentic server.Connectivity: HTTPS reachability, TLS verification, and clock skew against the server.
Options
string
Check this API key instead of the saved credentials or
MOMENTIC_API_KEY.string
Momentic server URL. Defaults to
MOMENTIC_SERVER, then the server saved by
qa login, then https://api.momentic.ai.Warnings
qa doctor warns when:
- A legacy Momentic
moexecutable is onPATH.mowas the command’s name before 0.18. When the running install is still namedmo,mo upgrademoves it toqa. Remove any other stalemofile; curl installs left one at$HOME/.local/bin/mo. - Multiple executables with the same name are on
PATH. On macOS and Linux, the earlier directory wins, so a stale copy can shadow a newer install. Remove the old copy or reorderPATH, then runhash -rin the current shell so it forgets the old location. MO_BINARY_PATHis set. The npm launcher runs that binary instead of the installed one.