Qnbot CLICLI overview

CLI overview

Inspect devices, capture and calibrate, subscribe to data and manage packages.

Latest documentation

CLI overview

Commands at a glance

CommandPurpose
qnbot device listDiscover and list devices
qnbot device infoInspect device identity, firmware and resources
qnbot device get <resource>Read device data
qnbot device sub <topic>Subscribe to live data
qnbot captureCollect and manage hand calibration samples
qnbot calibrationCompute calibration and manage results
qnbot algorithmManage algorithm packages and source access
qnbot updateUpdate 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 update updates the tool itself; qnbot algorithm update updates installed algorithm packages.

Output modes

ModeUsagePurpose
Terminal outputDefaultRead tables, sample summaries and interactive prompts
JSONAdd --json to a one-shot commandRead one structured result in a script
JSONLAdd --jsonl to device subRecord continuous samples, one JSON object per line
qnbot device list --json
qnbot device sub pose --handedness left --count 10 --jsonl > pose.jsonl

capture 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.

ModeResults and errors
Terminal outputResults go to stdout; errors go to stderr
One-shot command with --jsonstdout contains a success or error JSON result; failures have ok=false
Subscription with --jsonlstdout 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.