Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Fly.io CLI (flyctl)

$ flyctl Official High Risk
Fly.io · Cloud & Infra · Apache-2.0 · macos / linux / windows

Fly.io's flyctl (aliased as fly) deploys and inspects microVMs, volumes, secrets, and Postgres clusters across global regions, featuring -j / --json output on read commands, --yes prompt bypass, and scoped FLY_API_TOKEN tokens.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install flyctl
CLI vs MCP Decision CLI Preferred vs MCP

flyctl reads local fly.toml and streams builds/machine inspections directly with --json, beating generic MCP wrappers.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Most read commands (apps, status, machines, secrets list) support --json, and --yes suppresses interactive prompts.

  • Supports --json (-j) and --yes (-y) across core subcommands
Trust & Safety 19 / 25

App-scoped deploy tokens (FLY_API_TOKEN) and --stage secret updates help, though flyctl deploy lacks a general --dry-run.

  • Supports scoped FLY_API_TOKEN and secrets set --stage
Setup & Portability 14 / 15

Single static Go binary via Homebrew and official install scripts across macOS, Linux, and Windows.

  • Single Go binary via brew install flyctl
Utility & Efficiency 13 / 15

Manages builds, Machines, volumes, and WireGuard networking cleanly from one CLI.

  • Full Fly Machines and fly.toml lifecycle
Maintenance & Lineage 9 / 10

Official superfly/flyctl repository updated rapidly by Fly.io.

  • Official superfly/flyctl under Apache-2.0
Docs & Verifiability 8 / 10

Comprehensive fly.io/docs/flyctl/ reference and Cobra --help.

  • Official documentation at fly.io/docs/flyctl/

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores session tokens in ~/.fly/config.yml, or accepts scoped deploy tokens via FLY_API_TOKEN / --access-token.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is free (Apache-2.0); Fly Machines, Volumes, and bandwidth incur Fly.io billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# flyctl Agent Rules
- Always pass `--app <name>` and `--json` on status/list/logs queries.
- Prefer app-scoped `FLY_API_TOKEN` (`fly tokens create deploy`) over personal account tokens.
- Never run `flyctl apps destroy` or `flyctl volumes destroy` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Fly app status and machines in JSON
flyctl status --app my-app --json

Returns app state, allocation/machine IDs, regions, and health checks as JSON.

List deployed Fly apps
flyctl apps list --json

Lists accessible Fly apps and organizations in structured JSON.

Controlled Writes & Previews

Stage a Fly secret without immediate machine restart
flyctl secrets set MY_FLAG=true --stage --app my-app

Queues a secret update with --stage so it applies only on the next deliberate deploy.

Strengths for Agents

  • + Fast Go binary with widespread --json support on read commands.
  • + App-scoped FLY_API_TOKEN minimizes credential blast radius.
  • + flyctl secrets set --stage avoids unintended immediate restarts.

Caveats & Pitfalls

  • ! flyctl launch is heavily interactive unless configured carefully with --no-deploy and flags.
  • ! No universal --dry-run mode on flyctl deploy.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI