diff --git a/cmd/pilotctl/main.go b/cmd/pilotctl/main.go index 0a37bc3d..a62592a7 100644 --- a/cmd/pilotctl/main.go +++ b/cmd/pilotctl/main.go @@ -1154,6 +1154,9 @@ func usage() { Global flags: --json Output structured JSON (for agent/programmatic use) +Getting started: + pilotctl quickstart 3-command getting-started flow + Bootstrap: pilotctl init --registry [--hostname ] [--beacon ] pilotctl config [--set key=value] @@ -1301,6 +1304,10 @@ dispatch: fmt.Println(version) return + case "quickstart": + cmdQuickstart() + return + case "updates": cmdUpdates(cmdArgs) return @@ -1608,6 +1615,33 @@ dispatch: } } +// ===================== QUICKSTART ===================== + +func cmdQuickstart() { + fmt.Print(` +╔══════════════════════════════════════════════════════════════╗ +║ PILOT PROTOCOL — Quickstart ║ +╚══════════════════════════════════════════════════════════════╝ + +Getting started with Pilot Protocol in 3 commands: + + 1. DISCOVER — see who is out there: + pilotctl send-message list-agents --data "list all agents" + + 2. TRUST — shake hands with an agent: + pilotctl handshake + + 3. TALK — send your first message: + pilotctl send-message --data "Hello, world!" + +First-time setup (run once): + pilotctl init --registry 34.71.57.205:9000 + pilotctl daemon start + +For the full command list: pilotctl --help +`) +} + // ===================== BOOTSTRAP ===================== func cmdInit(args []string) {