CLI Reference
CLI Reference
This site keeps a selection guide, not a copy of the full CLI reference. Commands below are the ones our session experiments, walkthroughs, and network/deployment notes actually invoke; everything else lives in the official reference.
Commands used by this site’s experiments
- Session and state:
agentfor an interactive session;agentsto manage agents with independent state (used by the project walkthrough). - Gateway control plane:
gatewaystart/stop/restart — the restart behavior covered in Framework focus and observed in Project walkthrough. - Diagnostics:
doctorandhealth(see Health checks and Doctor);logspairs with Gateway logging. - Onboarding:
onboardandwizard(see Wizard). - Network and pairing:
pairing,devices, anddns setup— see Network. - Approvals:
approvals— covered in the approval state machine (Tools & approvals). - Cron/mail triggers:
webhooks gmail— see Multi-device sessions.
Official reference
The complete command tree, global flags, output styling, color palette, and platform-specific commands are maintained upstream: OpenClaw CLI reference. We do not duplicate it here; the upstream page is the single source for anything not listed above.