
flyctl
CLIFly.io's official CLI (fly): sign in, create and deploy apps, and list apps and check their status, reading fly.toml in the current directory to identify the app. Needs a Fly.io account.
flyctl
Ship any app or agent to Fly.io in minutes.
flyctl is the Fly.io CLI. Use the fly command to create and deploy apps, manage Machines and volumes, configure networking, and more.
Installation
# macOS, Linux, WSL (installs flyctl and a fly alias)
curl -L https://fly.io/install.sh | sh
curl -L https://fly.io/install.sh | sh -s pre # latest pre-release
curl -L https://fly.io/install.sh | sh -s <version> # specific version
# Homebrew
brew install flyctl
# Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex
Binaries for every platform are on the Releases page. They ship as flyctl, so use that name or alias it to fly. Upgrade a script install with fly version upgrade, or a Homebrew install with brew upgrade flyctl.
Launch an app
Sign up or log in, then run fly launch in your project's directory. It detects your framework, writes a fly.toml, and deploys:
fly auth signup # or: fly auth login
fly launch
Already have a Docker image? Point a fly.toml at it, create the app, and run fly deploy:
app = "my-app"
[build]
image = "ghcr.io/your-org/your-app:latest"
[http_service]
internal_port = 8080 # the port your image listens on
fly apps create my-app
fly deploy
Run fly deploy again to ship changes. Without an image in [build], it builds your app as [build] configures, by default from your Dockerfile:
fly deploy
fly status
fly open
Commands use the app named in fly.toml in the current directory. Pass -a <app-name> to act on a different app.
Scale
Add Machines, add regions, or resize them:
fly scale count 3
fly scale count 2 --region ams,syd
fly scale vm shared-cpu-2x
fly platform regions
Secrets and storage
Secrets are set as environment variables on your Machines. Volumes give a Machine persistent disk once you mount them with a [mounts] section in fly.toml. Each volume belongs to one Machine in one region, so create one per Machine:
fly secrets set API_KEY=...
fly volumes create data --size 10
Databases
Create a Managed Postgres cluster and attach it to your app, which sets DATABASE_URL:
fly mpg create
fly mpg attach <cluster-id>
Create a Redis database, then set the URL it prints as a secret on your app:
fly redis create
fly secrets set REDIS_URL=redis://...
fly redis connect # needs redis-cli
Debug
fly logs
fly ssh console
fly doctor
Run Machines directly
Start a Machine in an app from any image, outside of fly deploy:
fly machine run nginx -a my-app
fly machine list -a my-app
Use with coding agents
Set up your local coding agents with Fly's skills and the hosted MCP server:
fly setup agent
Reference
Every command has --help with flags and examples:
fly launch --help
fly scale count --help
Developing
flyctl is written in Go. Build a binary into bin/ and run the unit tests:
make build
./bin/flyctl version
make test
| Path | Purpose |
|---|---|
internal/command | One package per command (launch, deploy, ...) |
scanner | Framework detection for fly launch |
gql | GraphQL client for the Fly API |
test/preflight | Integration tests that run against production infra |
See CONTRIBUTING.md for preflight tests, the Windows build, and the release schedule.
License
flyctl is released under the Apache 2.0 license.
Похожие ресурсы

Docker Compose
CLIDefine multi-container apps in compose.yaml and bring up services, databases, caches and the rest with one docker compose up, handy for agents setting up local dev and test dependencies. Maintained by Docker; included with Docker Desktop on macOS.
docker/compose39.1k
Podman
CLIDaemonless, rootless container and pod manager with a Docker-compatible CLI for building, running and pushing OCI images. On macOS and Windows it runs inside a podman machine VM.
podman-container-tools/podman33.4k
Pulumi
CLIDefine cloud infrastructure in general-purpose languages like TypeScript, Python and Go, then preview and deploy with pulumi up to AWS, Azure, GCP, Kubernetes and 300+ other providers. Open source and maintained by Pulumi.
pulumi/pulumi26k
AWS CLI
CLIAWS's official unified CLI for managing EC2, S3, IAM and every other AWS service with one set of commands, with --query (JMESPath) filtering and JSON output that agents can use to inspect and change cloud resources. Run aws configure to set credentials first.
aws/aws-cli17.4k
cloudflared
CLIOfficial Cloudflare Tunnel client: exposes local services to the internet without opening firewall ports and can proxy TCP access like SSH and RDP. Named tunnels need a Cloudflare account and domain; quick tunnels work without signing in.
cloudflare/cloudflared16.8k
Dagger
CLIProgrammable software delivery engine: write build, test and release pipelines with SDKs in Go, Python, TypeScript and five other languages, all running in containers so local and CI behave the same, with built-in OpenTelemetry tracing. Needs a container runtime such as Docker.
dagger/dagger16.7k