chio doctor
Diagnose the local toolchain, guard registry, telemetry exporter, and chio.yaml, with exit codes that separate warnings from errors.
On this page
Diagnose toolchain, registry, OTEL, and chio.yaml health.
All command families · Global flags
0 entries. Choose a section or search the full text.
Usage
chio doctor [OPTIONS]--jsonEmit a structured JSON report on stdout instead of human text.--fixRun idempotent repairs after probes complete. Destructive repairs are explicitly rejected.--skip-networkSkip probes that would otherwise reach the network. Useful in CI sandboxes; equivalent toCHIO_DOCTOR_SKIP_NETWORK=1.
Additional behavior
Probes (in order):
1. Toolchain version vs. workspace MSRV / rust-toolchain.toml. 2. OCI guard registry reachability. 3. Cosign guard-bundle freshness. 4. OTEL exporter endpoint resolution. 5. Kernel runtime /metrics (asserts the chio_kernel_dispatch_inflight gauge is reachable). 6. chio.yaml schema validity.
Exit codes follow the worst observed severity: 0 for ok / info / warning, 1 for error, 2 for fatal. The optional --fix flag runs idempotent repairs only; destructive operations are rejected.
Example
Run in the deployment environment to collect structured local diagnostics without network probes. Exit 0 includes warnings, so read the report; 1 means error and 2 means fatal.
chio doctor --json --skip-networkRead more in Observe and diagnose the node.