docs(config): document schema command and add schema test

This commit is contained in:
Chummy 2026-02-19 16:38:05 +08:00
parent 282fbe0e95
commit d33eadea75
3 changed files with 45 additions and 2 deletions

View file

@ -2,7 +2,7 @@
This reference is derived from the current CLI surface (`zeroclaw --help`).
Last verified: **February 18, 2026**.
Last verified: **February 19, 2026**.
## Top-Level Commands
@ -22,6 +22,7 @@ Last verified: **February 18, 2026**.
| `integrations` | Inspect integration details |
| `skills` | List/install/remove skills |
| `migrate` | Import from external runtimes (currently OpenClaw) |
| `config` | Export machine-readable config schema |
| `hardware` | Discover and introspect USB hardware |
| `peripheral` | Configure and flash peripherals |
@ -105,6 +106,12 @@ Runtime in-chat commands (Telegram/Discord while channel server is running):
- `zeroclaw migrate openclaw [--source <path>] [--dry-run]`
### `config`
- `zeroclaw config schema`
`config schema` prints a JSON Schema (draft 2020-12) for the full `config.toml` contract to stdout.
### `hardware`
- `zeroclaw hardware discover`

View file

@ -2,12 +2,16 @@
This is a high-signal reference for common config sections and defaults.
Last verified: **February 18, 2026**.
Last verified: **February 19, 2026**.
Config file path:
- `~/.zeroclaw/config.toml`
Schema export command:
- `zeroclaw config schema` (prints JSON Schema draft 2020-12 to stdout)
## Core Keys
| Key | Default | Notes |