causet doctor
causet doctor is a real, shipped command, but it is a lightweight local diagnostic, not the full infrastructure health check described in earlier drafts of this page (no Kafka, Redis, S3, projection-table, or fixture-replay checks — those are not implemented today).
Usage
causet doctorThe command takes no required flags. Pass the global --json flag for machine-readable output.
Checks
| Check | What it validates |
|---|---|
| CLI version | Installed causet version |
| Compiler binary | The native compiler binary resolves on your machine |
| Auth token | Whether you’re logged in (causet login) and, if so, which account |
| Platform / application / fork context | Your effective CLI context (causet context show) |
.causet/causet.yaml | Whether a project config file is present in the current directory tree |
| Runtime reachable | Best-effort HTTP reachability of the runtime API (CAUSET_API_URL, default localhost:8085) |
| Query service reachable | Best-effort HTTP reachability of the query service (CAUSET_QUERY_URL, default localhost:8086) |
| Cloud reachable | Best-effort HTTP reachability of the Causet Cloud API (if logged in) |
Example output
Causet Doctor
────────────────────────────────────
✓ cli version v1.4.2
✓ compiler binary /usr/local/bin/causet-compiler
✓ auth token you@example.com
✓ platform context my-platform
✓ application context concert-app
✓ fork context main
✓ .causet/causet.yaml my-platform
✓ environment production
✓ runtime reachable http://localhost:8085
✓ query service reachable http://localhost:8086
✓ cloud reachable https://api.causet.ioAny ✗ marks a failed check; the command prints “Some checks failed” but does not fail CI by itself. Use causet build validate for a DSL-specific pre-deploy gate — see Projection Best Practices.
Related commands
causet version— print the full version block; also explains the version compatibility check that runs before every compilationcauset build compile— compile DSL before deployingcauset forensics— sandbox drift check and per-decision repair (verify context withdoctorfirst)causet context show— inspect the contextdoctorreports on (see Install Causet and Quickstart: Concert App)causet projections doctorand the other projection-management subcommands described elsewhere in this section are proposed and have no CLI equivalent today.