You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6093e34
Browse filesBrowse the repository at this point in the historyBrowse files
| Inspect |`openclaw doctor`| Human-oriented checks and guided prompts. |
34
34
| Repair |`openclaw doctor --fix`| Applies supported repairs, using prompts unless non-interactive repair is safe. |
35
-
| Lint |`openclaw doctor --lint`| Read-only structured findings for CI, preflight, and review gates. |
35
+
| Lint |`openclaw doctor --json`| Read-only JSON findings for deployment preflight and CI gates.|
36
36
| Shared SQLite maintenance |`openclaw doctor --state-sqlite compact`| Explicitly checkpoints, compacts, and verifies the canonical shared state DB. |
37
37
| Session SQLite migration |`openclaw doctor --session-sqlite <mode>`| Inspects, imports, validates, compacts, recovers, or restores session state. |
38
38
39
-
Prefer `--lint` when automation needs a stable result. Prefer `--fix` when a human operator wants doctor to edit config or state.
39
+
Use `openclaw doctor --json` as the machine-readable deployment preflight. It runs the same read-only checks, JSON output, and exit codes as `openclaw doctor --lint --json`. Prefer `--fix` when a human operator wants doctor to edit config or state.
40
40
41
41
## Examples
42
42
43
43
```bash
44
44
openclaw doctor
45
45
openclaw doctor --lint
46
+
openclaw doctor --json
46
47
openclaw doctor --lint --json
47
48
openclaw doctor --lint --severity-min warning
48
49
openclaw doctor --lint --all
@@ -93,19 +94,20 @@ openclaw channels status --probe
93
94
|`--session-sqlite-agent <id>`| With `--session-sqlite`: select one configured agent. |
94
95
|`--session-sqlite-all-agents`| With `--session-sqlite`: select configured and discovered agent stores. |
95
96
|`--github-issue`| With `--session-sqlite recover`: prepare a sanitized openclaw/openclaw issue report; doctor creates it with `gh` after `--yes` or interactive confirmation. |
96
-
|`--json`|With `--lint`: JSON findings. With `--post-upgrade`: `{ probesRun, findings }`. With `--state-sqlite` or `--session-sqlite`: the maintenance report as JSON.|
97
+
|`--json`|Run lint checks in read-only mode and emit JSON. With another machine mode, emit that mode's existing JSON report. |
97
98
|`--severity-min <level>`| With `--lint`: drop findings below `info`, `warning`, or `error`. |
98
99
|`--all`| With `--lint`: run all registered checks, including opt-in checks excluded from the default set. |
99
100
|`--skip <id>`| With `--lint`: skip a check id. Repeatable. |
100
101
|`--only <id>`| With `--lint`: run only the given check id(s). Repeatable. |
101
102
102
-
`--severity-min`, `--all`, `--only`, and `--skip` are only accepted together with `--lint`; `--json`is accepted with `--lint`, `--post-upgrade`, `--state-sqlite`, and `--session-sqlite`.
103
+
`--severity-min`, `--all`, `--only`, and `--skip` are only accepted together with `--lint`. Bare `--json`implies lint mode. It cannot be combined with `--repair`, `--fix`, or `--force` unless another machine mode owns the command.
103
104
104
105
## Lint mode
105
106
106
-
`openclaw doctor --lint` is read-only: no prompts, no repair, no config/state rewrites.
107
+
`openclaw doctor --json` is the deployment-preflight form of lint mode. It is read-only and non-interactive: no prompts, repairs, or config/state rewrites. `openclaw doctor --lint --json` remains an equivalent explicit spelling.
0 commit comments