|
| 1 | +# pilotctl Reference |
| 2 | + |
| 3 | +> **Auto-generated** from `pilotctl --help`. Do not edit by hand — CI regenerates |
| 4 | +> on every PR via `scripts/gen-cli-reference.sh` and fails if the committed copy |
| 5 | +> differs from a fresh `pilotctl --help` capture (PILOT-54). |
| 6 | +> |
| 7 | +> Source: [`cmd/pilotctl/main.go`](../cmd/pilotctl/main.go). |
| 8 | +
|
| 9 | +```text |
| 10 | +pilotctl — Pilot Protocol CLI |
| 11 | +
|
| 12 | +Global flags: |
| 13 | + --json Output structured JSON (for agent/programmatic use) |
| 14 | +
|
| 15 | +Getting started: |
| 16 | + pilotctl quickstart 3-command getting-started flow |
| 17 | +
|
| 18 | +Bootstrap: |
| 19 | + pilotctl init --registry <addr> [--hostname <name>] [--beacon <addr>] |
| 20 | + pilotctl config [--set key=value] |
| 21 | +
|
| 22 | +Daemon lifecycle: |
| 23 | + pilotctl daemon start [--config <path>] [--registry <addr>] [--beacon <addr>] [--email <addr>] [--webhook <url>] [--trust-auto-approve] |
| 24 | + pilotctl daemon stop |
| 25 | + pilotctl daemon status |
| 26 | +
|
| 27 | +Registry commands: |
| 28 | + pilotctl register [listen_addr] |
| 29 | + pilotctl lookup <node_id> |
| 30 | + pilotctl rotate-key |
| 31 | + pilotctl set-public |
| 32 | + pilotctl set-private |
| 33 | + pilotctl deregister |
| 34 | +
|
| 35 | +Discovery commands: |
| 36 | + pilotctl find <hostname> |
| 37 | + pilotctl set-hostname <hostname> |
| 38 | + pilotctl clear-hostname |
| 39 | + pilotctl set-tags <tag1> [tag2] ... |
| 40 | + pilotctl clear-tags |
| 41 | +
|
| 42 | +Communication commands: |
| 43 | + pilotctl connect <address|hostname> [port] [--message <msg>] [--timeout <dur>] |
| 44 | + pilotctl send <address|hostname> <port> --data <msg> [--timeout <dur>] |
| 45 | + pilotctl recv <port> [--count <n>] [--timeout <dur>] |
| 46 | + pilotctl send-file <address|hostname> <filepath> |
| 47 | + pilotctl send-message <address|hostname> --data <text> [--type text|json|binary] [--count <n>] [--reuse-conn] [--wait <dur>] |
| 48 | + pilotctl subscribe <address|hostname> <topic> [--count <n>] [--timeout <dur>] |
| 49 | + pilotctl publish <address|hostname> <topic> --data <message> |
| 50 | +
|
| 51 | +Trust commands: |
| 52 | + pilotctl handshake <node_id|hostname> [justification] |
| 53 | + pilotctl approve <node_id> |
| 54 | + pilotctl reject <node_id> [reason] |
| 55 | + pilotctl untrust <node_id> |
| 56 | + pilotctl pending |
| 57 | + pilotctl trust |
| 58 | +
|
| 59 | +Management commands: |
| 60 | + pilotctl connections |
| 61 | + pilotctl disconnect <conn_id> |
| 62 | +
|
| 63 | +Mailbox: |
| 64 | + pilotctl received [--clear] |
| 65 | + pilotctl inbox [--clear] |
| 66 | +
|
| 67 | +Service Agents: |
| 68 | + pilotctl send-message list-agents --data "list all agents" |
| 69 | +
|
| 70 | +Diagnostic commands: |
| 71 | + pilotctl info |
| 72 | + pilotctl health |
| 73 | + pilotctl peers [--search <query>] |
| 74 | + pilotctl ping <address|hostname> [--count <n>] [--timeout <dur>] |
| 75 | + pilotctl traceroute <address> [--timeout <dur>] |
| 76 | + pilotctl bench <address|hostname> [size_mb] [--timeout <dur>] |
| 77 | + pilotctl listen <port> [--count <n>] [--timeout <dur>] |
| 78 | + pilotctl broadcast <network_id> <message> |
| 79 | + pilotctl updates [--count <n>] [--scope <scope>] read https://teoslayer.github.io/pilot-changelog/feed.xml |
| 80 | +
|
| 81 | +Agent tool discovery: |
| 82 | + pilotctl context |
| 83 | + pilotctl skills [status] show where the daemon installs SKILL.md per detected agent tool |
| 84 | + pilotctl skills paths print only the install paths (shell-friendly) |
| 85 | + pilotctl skills check run one reconcile pass right now |
| 86 | +
|
| 87 | +Gateway (requires root for ports <1024): |
| 88 | + pilotctl gateway start [--subnet <cidr>] [--ports <list>] [<pilot-addr>...] |
| 89 | + pilotctl gateway stop |
| 90 | + pilotctl gateway map <pilot-addr> [local-ip] |
| 91 | + pilotctl gateway unmap <local-ip> |
| 92 | + pilotctl gateway list |
| 93 | +
|
| 94 | +Environment: |
| 95 | + PILOT_REGISTRY Registry address (default: 34.71.57.205:9000) |
| 96 | + PILOT_SOCKET Daemon socket path (default: /tmp/pilot.sock) |
| 97 | +
|
| 98 | +Version: |
| 99 | + pilotctl version |
| 100 | +
|
| 101 | +Config file: ~/.pilot/config.json |
| 102 | +
|
| 103 | +Companion binaries: |
| 104 | + daemon start / start --foreground exec the separately-shipped |
| 105 | + pilot-daemon binary; gateway start / map exec pilot-gateway. They |
| 106 | + are discovered (in order): $PILOT_DAEMON_BIN / $PILOT_GATEWAY_BIN, |
| 107 | + next to the pilotctl executable, then $PATH. |
| 108 | +``` |
0 commit comments