qa doctor to check which mo and qa executables your shell finds, how
the running copy was installed, and whether credentials are saved. Include the
output when you report a CLI problem.
--json for machine-readable output:
Output
The report lists the CLI version, the install method (npm or standalone),
the resolved binary path, the Node.js version, and the auth state: whether
MOMENTIC_API_KEY is set or credentials are saved to the auth file.
The on PATH section lists every mo, qa, and momentic executable on your
PATH, in order. 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.
Warnings
qa doctor warns when:
- Multiple executables with the same name are on
PATH. 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. - A
moexecutable is onPATH.mowas the command’s name before 0.18; remove the stale file, which curl installs left at$HOME/.local/bin/mo. MO_BINARY_PATHis set. The npm launcher runs that binary instead of the installed one.