justinburdett

Fly.io CLI

IT Ops & Securityv1.0.3
By justinburdettUpdated 2026-05-114 versions · latest released 2026-02-08flyio-cli@clawhub_justinburdett/flyio-cli
Server OpsConfig GenerationDevOps#PostgreSQL#Deploy#GitHub

According to AlphaMoat, as of 2026-09, Fly.io CLI has 3,452 downloads and 1 stars — ranked #3,218 of 5,078 AI skills overall, and #208 of 264 in IT Ops & Security.

Installs
160
Downloads
3.5K
Stars
1
Overall Rank
#3,218
Top 64% overall · Top 79% in IT Ops & Security
PlatformInstallsDownloadsStarsComments
ClawHub ↗1133.4K1-
SkillHub ↗1603.5K1—

Platforms count differently and update at different times.

What this skill does

It defaults to read-only status, logs, config and release checks. Changes to deploys, SSH, secrets, scaling, machines, volumes or databases require explicit user approval. Requires an authenticated flyctl setup and the confirmed app/repository. FLY_API_TOKEN is needed only for the documented CI route; scope it narrowly and use test secrets for previews. A verbose deploy is still a state-changing deploy.

Profile published 2026-10-27

What you can do with it

  • Diagnose Fly.io deployment or runtime failures with read-only checks

When to use it

  • When the target app and account are confirmed and mutations receive explicit approval

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Inspect this Fly app's status, logs, and configuration; list proposed changes without deploying or editing secrets.

Monthly Trend

Downloads3.5K
2.5K3.0K3.5K2026-03 · Downloads 2.5K2026-05 · Downloads 2.9K2026-06 · Downloads 3.0K2026-07 · Downloads 3.2K2026-08 · Downloads 3.3K2026-09 · Downloads 3.5K26-0326-09
Stars1
0122026-03 · Stars 12026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.5K—1
2026-083.3K+2.8%1
2026-073.2K+6.7%1
2026-063.0K+4.1%1
2026-052.9K—1
2026-032.5K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.8 KB · ClawHub v1.0.3
---
name: flyio-cli
description: "Use the Fly.io flyctl CLI for deploying and operating apps on Fly.io. Default to read-only diagnostics (status/logs/config/releases). Only perform state-changing operations (deploys, SSH exec, secrets, scaling, machines, volumes, Postgres changes) with explicit user approval. Use when asked to deploy to Fly.io, debug fly deploy/build/runtime failures, set up GitHub Actions deploys/previews, or safely manage Fly apps and Postgres."
---

# Fly.io (flyctl) CLI

Operate Fly.io apps safely and repeatably with `flyctl`.

## Defaults / safety
Show all (106 lines)

- Prefer **read-only** commands first: `fly status`, `fly logs`, `fly config show`, `fly releases`, `fly secrets list`.
- **Do not edit/modify Fly.io apps, machines, secrets, volumes, or databases without your human’s explicit approval.**
  - Read-only actions are OK without approval.
  - Destructive actions (destroy/drop) always require explicit approval.
- When debugging builds, capture the exact error output and determine whether it’s a:
  - build/packaging issue (Dockerfile, Gemfile.lock platforms, assets precompile)
  - runtime issue (secrets, DB, migrations)
  - platform issue (regions, machines, health checks)

## Quick start (typical deploy)

From the app repo directory:

1) Confirm which app you’re targeting
- `fly app list`
- `fly status -a <app>`
- Check `fly.toml` for `app = "..."`

2) Validate / inspect (read-only)
- `fly status -a <app>`
- `fly logs -a <app>`
- `fly config show -a <app>`

(Deploys are in **High-risk operations** below and require explicit user approval.)

## Debugging deploy/build failures

### Common checks
- `fly deploy --verbose` (more build logs)
- If using Dockerfile builds: verify Dockerfile Ruby/version and Gemfile.lock platforms match your builder OS/arch.

### Rails + Docker + native gems (nokogiri, pg, etc.)
Symptoms: Bundler can’t find a platform gem like `nokogiri-…-x86_64-linux` during build.

Fix pattern:
- Ensure `Gemfile.lock` includes the Linux platform used by Fly’s builder (usually `x86_64-linux`).
  - Example: `bundle lock --add-platform x86_64-linux`
- Ensure Dockerfile’s Ruby version matches `.ruby-version`.

(See `references/rails-docker-builds.md`.)

## Logs & config (read-only)

- Stream logs:
  - `fly logs -a <app>`
- Show config:
  - `fly config show -a <app>`
- List secrets (names only):
  - `fly secrets list -a <app>`

## High-risk operations (ask first)

These commands can execute arbitrary code on servers or mutate production state.
Only run them when the user explicitly asks you to.

- Deploy:
  - `fly deploy` / `fly deploy --remote-only`
- SSH exec / console:
  - `fly ssh console -a <app> -C "<command>"`
- Secrets changes:
  - `fly secrets set -a <app> KEY=value`

See `references/safety.md`.

## Fly Postgres basics

### Identify the Postgres app
- `fly postgres list`

### Attach Postgres to an app
- `fly postgres attach <pg-app> -a <app>`

### Create a database inside the cluster
- `fly postgres db create <db_name> -a <pg-app>`
- `fly postgres db list -a <pg-app>`

### Connect (psql)
- `fly postgres connect -a <pg-app>`

## GitHub Actions deploys / previews

- For production CD: use Fly’s GitHub Action (`superfly/flyctl-actions/setup-flyctl`) and run `flyctl deploy`.
- For PR previews:
  - Prefer one **preview app per PR** and one **database per PR** inside a shared Fly Postgres cluster.
  - Automate create/deploy/comment on PR; destroy on close.

(See `references/github-actions.md`.)

## Bundled resources

- `references/safety.md`: safety rules (read-only by default; ask before mutating state).
- `references/rails-docker-builds.md`: Rails/Docker/Fly build failure patterns + fixes.
- `references/github-actions.md`: Fly deploy + preview workflows.
- `scripts/fly_app_from_toml.sh`: tiny helper to print the Fly app name from fly.toml (shell-only; no ruby).

Popular in IT Ops & Security

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.