Agent Commands
Agent Commands
Section titled “Agent Commands”Manage build agents with the flightstack agent command.
flightstack agent <subcommand> [options]Commands
Section titled “Commands”List all registered agents:
flightstack agent listOutput:
Build Agents (2):────────────────────────────────────────────────────────────
Mac-Mini-Office ID: a1b2c3d4-e5f6-... Status: 🟢 Online Scope: 🌐 Public Platform: macOS Capabilities: iOS, Android, Web Builds: 127 total, 119 successful
Linux-CI-Server ID: f7g8h9i0-j1k2-... Status: 🔴 Offline Scope: 🔒 Private (Acme Corp) Platform: Linux Capabilities: Android, Web Builds: 45 total, 42 successfulShow detailed information about an agent:
flightstack agent show <agent-id>Output:
Agent Details────────────────────────────────────────────────────────────Name: Mac-Mini-OfficeID: a1b2c3d4-e5f6-...Status: 🟢 OnlineScope: 🌐 Public
System: OS: macOS 14.2 Xcode: 15.1 Flutter: 3.16.5 Dart: 3.2.3
Capabilities: iOS: ✓ Android: ✓ Web: ✓
Statistics: Total Builds: 127 Successful: 119 Failed: 8 Avg Build Time: 4.2 minregister
Section titled “register”Register this machine as a build agent:
flightstack agent register [options]Options:
| Flag | Description |
|---|---|
--name, -n | Agent name (default: hostname) |
--org, -o | Organization ID for private agent |
Examples:
# Register with default nameflightstack agent register
# Custom nameflightstack agent register --name "iOS-Builder"
# Private to an organizationflightstack agent register --org abc123-def456Start the build agent:
flightstack agent start [options]Options:
| Flag | Description |
|---|---|
--daemon, -D | Run in background |
--debug, -d | Enable debug logging |
Examples:
# Foreground (interactive)flightstack agent start
# Background (daemon)flightstack agent start --daemonStop a running agent:
flightstack agent stopstatus
Section titled “status”Show local agent status:
flightstack agent statusinstall
Section titled “install”Install agent as a startup service:
flightstack agent installThe agent will start automatically on boot/login.
uninstall
Section titled “uninstall”Remove startup service:
flightstack agent uninstallupdate
Section titled “update”Update an agent’s settings:
flightstack agent update <agent-id> [options]Options:
| Flag | Description |
|---|---|
--name, -n | New name |
--org, -o | Move to organization |
--public, -p | Make public (clear org) |
Examples:
# Renameflightstack agent update abc123 --name "New Name"
# Make publicflightstack agent update abc123 --public
# Assign to organizationflightstack agent update abc123 --org org-id-heredelete
Section titled “delete”Delete/unregister an agent:
flightstack agent delete <agent-id>Aliases: unregister
You’ll be prompted for confirmation. If deleting the local agent, configuration files are also removed.