CLI overview
Inspect devices, capture and calibrate, subscribe to data and manage packages.
Latest documentation
CLI overview
Commands at a glance
| Command | Purpose |
|---|---|
qnbot device list | Discover and list devices |
qnbot device info | Inspect device identity, firmware and resources |
qnbot device get <resource> | Read device data |
qnbot device sub <topic> | Subscribe to live data |
qnbot capture | Collect and manage hand calibration samples |
qnbot calibration | Compute calibration and manage results |
qnbot algorithm | Manage algorithm packages and source access |
qnbot update | Update the CLI to the latest stable release |
qnbot completions <shell> | Generate shell completion scripts |
Add --help after any command to view detailed help.
Design principles
- Self-contained device operations: Device commands perform the discovery, connection and cleanup they need. Select a device and run the operation directly.
- Separate capture and calibration: Collect and save samples first, then compute calibration from a completed capture. Saved samples can be used for later calibration.
- Independent CLI and package updates:
qnbot updateupdates the tool itself;qnbot algorithm updateupdates installed algorithm packages.
Output modes
| Mode | Usage | Purpose |
|---|---|---|
| Terminal output | Default | Read tables, sample summaries and interactive prompts |
| JSON | Add --json to a one-shot command | Read one structured result in a script |
| JSONL | Add --jsonl to device sub | Record continuous samples, one JSON object per line |
qnbot device list --json
qnbot device sub pose --handedness left --count 10 --jsonl > pose.jsonlcapture run --json returns JSON while capture actions still follow terminal prompts.
Error output
Check the exit status first: 0 means success; a nonzero status means failure or interruption. Structured errors provide error.code for identifying the cause and error.message for its description.
| Mode | Results and errors |
|---|---|
| Terminal output | Results go to stdout; errors go to stderr |
One-shot command with --json | stdout contains a success or error JSON result; failures have ok=false |
Subscription with --jsonl | stdout contains samples only; error JSON goes to stderr |
In a macOS/Linux shell, save results and diagnostics separately and read the exit status:
qnbot device info --sn SN --json > result.json 2> diagnostics.log
echo $?In PowerShell, read the exit status with $LASTEXITCODE. See Health diagnostics for troubleshooting and Saving diagnostics for collecting diagnostic files.