cli
Execute raw iNAV CLI commands for one-off configuration, diagnostics, and troubleshooting. Write commands persist only with confirmation; motor tests are gated for safety.
Instructions
Raw CLI escape hatch — run any iNAV CLI command directly.
Read-only commands (diff, get, status, dump, tasks, help, version) run and the FC reboots on CLI exit (auto-reconnected). Write commands (set, aux, feature, smix, ...) require confirm_for_writes=True and are SAVED (persist + reboot), since on iNAV exiting CLI without save discards changes.
SAFETY — motor commands: a 'motor ...' command drives a LIVE motor output and can spin a propeller. It is gated separately from ordinary writes: it requires props_removed=True (NOT confirm_for_writes), refuses if the board is armed, and is NEVER saved — it's a momentary bench test that stops when the FC reboots on CLI exit.
Prefer the dedicated write tools (they back up and verify). Use this for one-off commands the other tools don't cover.
Args: command: The CLI command to run (without trailing newline). confirm_for_writes: Set True to allow (and persist) write commands. props_removed: Set True to allow a live 'motor' test — ONLY after physically removing all propellers from the aircraft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| props_removed | No | ||
| confirm_for_writes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |