Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions cmd/pilotctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <addr> [--hostname <name>] [--beacon <addr>]
pilotctl config [--set key=value]
Expand Down Expand Up @@ -1301,6 +1304,10 @@ dispatch:
fmt.Println(version)
return

case "quickstart":
cmdQuickstart()
return

case "updates":
cmdUpdates(cmdArgs)
return
Expand Down Expand Up @@ -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 <node_id>

3. TALK — send your first message:
pilotctl send-message <node_id> --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) {
Expand Down
Loading