flyio
БесплатноБез исполняемых скриптовНе проверенDeploy and scale full-stack applications globally on Fly.io platform
от enuno★ 17 звёзд на GitHubОб этом скилле
Fly.io Platform Skill
Overview
Fly.io is a platform for deploying full-stack applications and databases globally. It runs your apps on Machines (fast-launching VMs) close to your users and scales compute resources automatically based on demand.
When to Use This Skill
Use Fly.io when you need to:
- Deploy web applications with global distribution
- Run Docker containers in production
- Scale applications automatically based on load
- Deploy databases (Postgres, Redis) close to users
- Run background jobs and workers
- Build multi-region applications with low latency
Core Concepts
Applications
An app on Fly.io can be anything from a simple frontend web app to a complex arrangement of processes and Machines all doing their own thing. Applications are defined using fly.toml configuration files.
Machines
Firecracker micro-VMs that run your application code. Machines can:
- Start in milliseconds
- Scale to zero when idle (autostop/autostart)
- Run anywhere in Fly.io's global network
- Be sized from minimal (shared-cpu-1x) to performance-optimized
Fly Launch
The primary deployment framework that manages the complete application lifecycle:
- Creates and configures applications
- Detects project types automatically
- Builds Docker images
- Provisions resources (IPs, volumes, databases)
- Deploys and scales applications
Quick Start
1. Install flyctl
macOS/Linux:
curl -L https://fly.io/install.sh | sh
Windows:
pwsh -Command "iwr https://fly.io/install.ps1 -useb | iex"
2. Sign up or log in
fly auth signup # Create new account
fly auth login # Existing account
3. Launch your application
cd your-app
fly launch
This will:
- Scan your project and detect the framework
- Create a
fly.tomlconfiguration file - Build your application as a Docker image
- Deploy your app to Fly.io
- Allocate IP addresses (IPv6 dedicated, IPv4 shared)
4. Deploy updates
fly deploy
Common Commands
Application Management
# Launch new app (interactive)
fly launch
# Launch with custom options
fly launch --name my-app --region ord --no-deploy
# Deploy app updates
fly deploy
# Deploy without rebuilding
fly deploy --image registry.fly.io/my-app:latest
# Check app status
fly status
# View app information
fly info
# Open app in browser
fly open
# View logs
fly logs
# SSH into Machine
fly ssh console
# List all apps
fly apps list
# Destroy app
fly apps destroy my-app
Machine Management
# List Machines
fly machines list
# Create Machine
fly machines run registry.fly.io/my-app:latest
# Stop Machine
fly machines stop <machine-id>
# Start Machine
fly machines start <machine-id>
# Destroy Machine
fly machines destroy <machine-id>
Scaling
# Scale Machine count
fly scale count 3
# Scale to specific regions
fly scale count 2 --region ord --region iad
# Scale Machine resources
fly scale vm shared-cpu-2x --memory 2048
# Configure autoscaling
fly autoscale set min=1 max=10
Secrets Management
# Set secret
fly secrets set DATABASE_URL=postgres://...
# List secrets (names only, not values)
fly secrets list
# Unset secret
fly secrets unset DATABASE_URL
# Import secrets from file
fly secrets import < .env.production
Volumes (Persistent Storage)
# Create volume
fly volumes create data --size 10
# List volumes
fly volumes list
# Delete volume
fly volumes delete vol_abc123
# Extend volume size
fly volumes extend vol_abc123 --size 20
Databases
# Create Postgres cluster
fly postgres create --name my-db
# Attach Postgres to app
fly postgres attach --app my-app my-db
# Create Redis instance
fly redis create --name my-redis
# Connect to Postgres
fly postgres connect --app my-db
Configuration (fly.toml)
Basic Structure
# App name
app = "my-app"
# Primary region
primary_region = "ord"
# Build configuration
[build]
dockerfile = "Dockerfile"
# HTTP service
services
protocol = "tcp"
internal_port = 8080
services.ports
port = 80
handlers = ["http"]
services.ports
port = 443
handlers = ["tls", "http"]
# Machine VM size
[vm]
size = "shared-cpu-1x"
memory_mb = 256
# Auto stop/start
[auto_stop_machines]
enabled = true
min_machines_running = 0
[auto_start_machines]
enabled = true
Advanced Features
Environment Variables:
[env]
PORT = "8080"
NODE_ENV = "production"
Process Groups:
[processes]
web = "node server.js"
worker = "node worker.js"
HTTP Service with Health Checks:
services
protocol = "tcp"
internal_port = 8080
services.http_checks
interval = "10s"
timeout = "2s"
grace_period = "5s"
method = "GET"
path = "/health"
services.tcp_checks
interval = "15s"
timeout = "2s"
grace_period = "5s"
Mounted Volumes:
[mou
Установить flyio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flyio?
Deploy and scale full-stack applications globally on Fly.io platform
Как установить скилл flyio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flyio запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub