# Command Reference ## Root - `pxmon [--config path] [--json] ` - `pxmon help` - `pxmon shell` (interactive alias to TUI) - `pxmon tui [name-or-id] [--interval 2s] [--iface eth0]` - `pxmon clusters [name-or-id] [--interval 2s] [--iface eth0]` - `pxmon network [name-or-id] [--interval 2s] [--iface eth0]` - `pxmon cluster ...` - `pxmon bot ...` - `pxmon locker ...` - `pxmon config ...` - `pxmon export ...` (shortcut) - `pxmon import ...` (shortcut) - `pxmon explain [--find text]` ## Cluster command tree - `connect|add` - `list|ls` - `show|get` - `current` - `use` - `disconnect|remove|rm` - `set-auth|auth|password|passwd` - `openssh|ssh` - `exec|run -- ` - `ping|check` - `bootstrap` - `agent` - `status [name-or-id]` - `adopt-auth|sync-auth|repair-auth [name-or-id]` - `update [name-or-id] [--restart-bot=true|false]` - `versions|version-list` - `stats [name-or-id] [--once]` - `usage [name-or-id] --range live|1h|1d|1mo|all [--du /]` - `traffic [name-or-id] --range 1h|1d|1mo|all` - `graph [name-or-id] --range 1h|1d|1mo|all [--out file.png]` - `p95 [name-or-id] --iface --range [--graph]` - `slo|availability [name-or-id] --range 7d|30d|all` - `capacity forecast [name-or-id] --range 7d|30d|all` - `alert|alerts show|set [name-or-id]` - `alert-routing|routing show|set [name-or-id]` - `alert-vm|vm-alert show|set|check [name-or-id]` - `software|plugins show|scan [name-or-id]` - `tag|tags add|rm|ls [name-or-id] --tags a,b` - `kvm-tag|vm-tag add|rm|ls [name-or-id] --vm --tags a,b` - `change-history|changes [--tail N]` - `drift [name-or-id]` - `baseline set|show [name-or-id]` - `ack [name-or-id] --kind --for 24h` - `report export --format json|csv --out ` - `backup` - `target add|ls|rm|test` - `plan add|ls|rm|run` - `run ` - `repo-tunnel|repo|repo-tunneling` - `gateway-script --allow [--port 3128]` - `gateway-setup --allow [--port 3128]` - `enable --gateway --table [--gateway-ip ] [--manager auto|apt|dnf|yum]` - `install --gateway --table -- ` - `status ` - `disable --gateway --table ` - `runbook` - `list` - `show ` - `run ` - `add --id ... --name ... --step ...` - `add --edit` - `add --from ` - `rm ` - `runbook-trigger show|set [name-or-id]` - `schedule|scheduler` - `add --name ... --cmd ... --every ...` - `add --edit` - `add --from ` - `ls` - `rm ` - `run-due` - `start [--interval 30s]` - `stop` - `status` - `logs [--tail 200]` - `worker [--interval 30s]` ## Bot - `pxmon bot telegram show [--show-token]` - `pxmon bot telegram set --token --allow [--allow ...]` - `pxmon bot telegram disable` - `pxmon bot telegram restart [--poll 2s]` - `pxmon bot telegram logs [--tail 200]` - `pxmon bot telegram run [--poll 2s]` ## Locker - `pxmon locker status` - `pxmon locker set [--password ]` - `pxmon locker unlock [--password ]` - `pxmon locker lock` - `pxmon locker disable` - `pxmon locker logs [--tail 200]` ## Config - `pxmon config export [] [--out ] [--password ]` - `pxmon config import [--password ] [--replace]` ## In-TUI command console Alias examples: - `alerts ...` -> `cluster alert ...` - `connect ` -> `cluster use ` - `software ...` -> `cluster software ...` - `clusters` -> `cluster list` - `ping ` -> `cluster ping ` Plugin-style commands from console: - `kvm list|start|stop|reboot|top|net-top` - `lxc list|start|stop|restart|stats|top|net-top` - `lxd list|start|stop|restart|stats|top|net-top` - `bird status|protocols|routes` - `frr status|routes|bgp|ospf`