Command Overview
Add
--help after any command for detailed usage.
Design Principles
- Stateless: Each command completes its own connect-operate-disconnect cycle. No connection persists between commands, so there’s no separate “connect” step.
- Read-only fallback when occupied: Device firmware allows only one direct session at a time. When another host application occupies the device, the CLI falls back to read-only access, and
setoperations are rejected. - Scriptable exit codes: 0 means success, and nonzero means failure.
pingreturns 1 if any device fails, anddoctorreturns 1 if it finds a fault — ready for script assertions.
Output Modes
All commands print tables or tree reports by default. Add a global flag to switch to structured output:Error Output
Under--json / --jsonl, command errors print to stderr as JSON with a fixed structure, and stdout carries data only. The JSON object holds message (the full error chain) and argv (the original argument array of the invocation):
wuji user and wuji calib hand-model render their own structured errors with a code field and per-scenario exit codes, printed to stdout rather than stderr — both differ from the generic error structure. See “Automation” on each command page.