Loading...
Loading...
Deploy and manage apps on Fly.io using flyctl CLI. Triggers on: fly deploy, fly.io, flyctl, deploy to fly. Handles launch, deploy, scale, secrets, volumes, databases.
npx skill4agent add sebastiaanwouters/dotagents flyctl| Task | Command |
|---|---|
| New app | |
| Deploy | |
| Status | |
| Logs | |
| SSH | |
| Open | |
cd /path/to/project
fly launch # Interactive setup
fly launch --now -y # Accept defaults, deploy immediately
fly launch --no-deploy # Configure only, deploy laterfly.tomlDockerfilefly deploy # Standard deploy
fly deploy --strategy rolling # Rolling update (default)
fly deploy --local-only # Build locally instead of remotefly secrets set KEY=value # Set secret
fly secrets set K1=v1 K2=v2 # Multiple
fly secrets list # List (values hidden)
fly secrets unset KEY # Remove
cat .env | fly secrets import # Import from filefly scale show # Current config
fly scale vm shared-cpu-1x # Change VM size
fly scale memory 512 # Set memory (MB)
fly scale count 3 # Set instance count
fly scale count web=2 worker=1 # Per process groupshared-cpu-1xshared-cpu-2xperformance-1xperformance-2xfly volumes create mydata --size 10 --region ord # Create 10GB
fly volumes list # List volumes
fly volumes extend <id> --size 20 # Resize[mounts]
source = "mydata"
destination = "/data"fly mpg create # Create managed postgres
fly mpg list # List clustersfly postgres create # Create cluster
fly postgres attach <pg-app> # Attach to app (sets DATABASE_URL)
fly postgres connect <pg-app> # Connect via psqlfly redis create # Create instancefly status # App status
fly logs # Tail logs
fly logs -i <machine-id> # Specific machine
fly checks list # Health checks
fly dashboard # Open web UIfly ssh console # Interactive shell
fly ssh console -C "cmd" # Run command
fly sftp shell # SFTP accessapp = "my-app"
primary_region = "ord"
[env]
APP_ENV = "production"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 1
[[vm]]
memory = "512mb"
cpu_kind = "shared"
cpus = 1reference/laravel.mdreference/dockerfile.mdfly doctor # Diagnose issues
fly releases # List releases
fly releases show <v> # Release details
fly machine list # List machines
fly machine restart <id> # Restart specific machine| Flag | Description |
|---|---|
| Specify app name |
| Config file path |
| Target region |
| Skip confirmations |
| Verbose output |