Skip to content
github-actions[bot] edited this page Jul 7, 2026 · 1 revision

CLI reference

Every kvm-pilot subcommand in one table. This is the canonical list — if a command exists in cli.py it must appear here (kvm-pilot --help is the runtime source of truth for flags). Global flags precede the subcommand: --version, -v/--verbose, --timeout SECONDS (HTTP per-request timeout).

Destructive commands (marked ⚡) auto-run the preflight healthcheck first and prompt for confirmation; --dry-run logs instead of sending, --yes skips the prompt on a real run. Capability column = what the device's driver must support (kvm-pilot capabilities lists them, offline).

Command Capability What it does
info system_info Device/system info as JSON.
capabilities — (offline) List the capabilities this driver supports; --json for an array.
healthcheck Preflight audit (readiness/security/firmware, #80). Run on first contact. --json, --fix (offer safe reversible auto-fixes).
firmware-check system_info Firmware currency vs the bundled registry; reports the vendor's latest when the device knows it.
firmware-update firmware_update Assess and (with --execute) perform a gated remote flash. Plans by default; verifies the device actually entered an upgrade state (#94). --image, --i-have-physical-access.
snapshot video Save a screenshot to a file (validated JPEG, #107).
sensors sensors Structured sensors (temps/fans/power/voltages) — BMC drivers.
logs logs Device/host event log; --seek N = seconds of lookback.
boot-progress boot_progress Structured boot phase (BMC BootProgress).
ssh-check — (ssh_host) Is the managed host's OS reachable over SSH (in-band)?
ssh-exec — (ssh_host) Run a command on the managed host's OS over SSH (gated).
ssh-discover Scan a CIDR for open SSH. RISKY/opt-in — your networks only. --ssh-port.
ssh-bootstrap hid, video Bootstrap SSH on an installer host over KVM HID, then hand off (#81). Plans by default; --execute, --vt, --command (repeatable), --ip-region.
power power on / off / off-hard / reset.
power-cycle power Hard power cycle (off-hard → on).
type hid Type text on the host console; --slow for finicky firmware.
key hid Press a key (Enter, F2) or send a chord of kvmd key codes (ControlLeft+AltLeft+F2, #112).
mouse-move hid Absolute mouse move; --space percent (default, 0.0–1.0, resolution-proof) | pixel | raw (#124).
click hid Mouse click (left/right/middle); --at X Y moves first, --double (#124).
media-list virtual_media List images already on the KVM's MSD storage — check before downloading/uploading an ISO (#127).
mount virtual_media Mount an ISO (local path or URL); verifies the media actually reports online (#77). --name, --usb.
eject virtual_media Detach virtual media (inverse of mount).
classify video Classify the current screen into a boot/run phase once (vision backend flags: --backend, --vision-url, --vision-model, --hint).
watch video Wait until the screen reaches a phase; --timeout is the vision deadline (distinct from the global --timeout).
events events Stream device events (needs the ws extra); --duration, --count, --no-stream.

Common selection flags on device commands: --profile NAME (config-file profile), --host/--user/--passwd/--port/--scheme, --driver (pikvm/glkvm/blikvm/redfish/fake), plus the KVM_PILOT_* environment variables (configuration reference).

See also: the MCP server tool table for the agent-facing surface, and the interface matrix in the bundled skill for which interface to prefer per action.

Clone this wiki locally