Example
Options
No flags accepted.Exit status
0 when checks pass or are skipped; 1 when a diagnostic check fails; 2 on usage/configuration failure.Behavior and limits
Behavior and limits
Checks the ledger, optional receipts, activity state and verifier. With a cloud origin it probes /healthz without credentials, then tests watches:read through the configured API-key REST or saved OAuth MCP connection.OAuth can refresh its private stored credential before that read; macOS, Windows or unverified custody returns an actionable refusal. A saved cloud record without a usable origin is a failed connection diagnostic, distinct from an unconfigured local-only repository.To save diagnostics, doctor acquires the native writer lock, rereads current state and merges only its diagnostic record. It reports NOT recorded when the lock is busy, unknown or unsupported and preserves newer cursors, mappings and other state fields.Prints checks and suggested fixes; repairs no ledger data.
Full command syntax
Full command syntax
Configuration and file contracts
Configuration and file contracts
Read configuration and file ownership for environment variables, compatibility aliases and writer locks. Read local file contracts for artifact fields. Browse the CLI index for related commands.
Check the selected environment and workspace access before calling hosted operations. See capability status.