Skip to content

Agent Commands

Manage build agents with the flightstack agent command.

Terminal window
flightstack agent <subcommand> [options]

List all registered agents:

Terminal window
flightstack agent list

Output:

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 successful

Show detailed information about an agent:

Terminal window
flightstack agent show <agent-id>

Output:

Agent Details
────────────────────────────────────────────────────────────
Name: Mac-Mini-Office
ID: a1b2c3d4-e5f6-...
Status: 🟢 Online
Scope: 🌐 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 min

Register this machine as a build agent:

Terminal window
flightstack agent register [options]

Options:

FlagDescription
--name, -nAgent name (default: hostname)
--org, -oOrganization ID for private agent

Examples:

Terminal window
# Register with default name
flightstack agent register
# Custom name
flightstack agent register --name "iOS-Builder"
# Private to an organization
flightstack agent register --org abc123-def456

Start the build agent:

Terminal window
flightstack agent start [options]

Options:

FlagDescription
--daemon, -DRun in background
--debug, -dEnable debug logging

Examples:

Terminal window
# Foreground (interactive)
flightstack agent start
# Background (daemon)
flightstack agent start --daemon

Stop a running agent:

Terminal window
flightstack agent stop

Show local agent status:

Terminal window
flightstack agent status

Install agent as a startup service:

Terminal window
flightstack agent install

The agent will start automatically on boot/login.

Remove startup service:

Terminal window
flightstack agent uninstall

Update an agent’s settings:

Terminal window
flightstack agent update <agent-id> [options]

Options:

FlagDescription
--name, -nNew name
--org, -oMove to organization
--public, -pMake public (clear org)

Examples:

Terminal window
# Rename
flightstack agent update abc123 --name "New Name"
# Make public
flightstack agent update abc123 --public
# Assign to organization
flightstack agent update abc123 --org org-id-here

Delete/unregister an agent:

Terminal window
flightstack agent delete <agent-id>

Aliases: unregister

You’ll be prompted for confirmation. If deleting the local agent, configuration files are also removed.