| name | flyio-install-auth |
| description | Install flyctl CLI and configure Fly.io authentication with API tokens.
Use when setting up a new Fly.io project, configuring deploy tokens,
or initializing the Machines API for edge compute deployments.
Trigger: "install fly.io", "setup flyctl", "fly.io auth", "fly.io API token".
|
| allowed-tools | Read, Write, Edit, Bash(fly:*), Bash(curl:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","edge-compute","flyio"] |
| compatibility | Designed for Claude Code |
Fly.io Install & Auth
Overview
Install flyctl CLI and configure authentication for Fly.io edge compute platform. Two auth methods: interactive login (opens browser) and API tokens (CI/CD and Machines API). The Machines API base URL is https://api.machines.dev.
Prerequisites
- Fly.io account at fly.io
- macOS, Linux, or WSL2
Instructions
Step 1: Install flyctl
curl -L https://fly.io/install.sh | sh
brew install flyctl
fly version
Step 2: Authenticate
fly auth login
fly auth token
export FLY_API_TOKEN="fo1_your_token_here"
fly auth whoami
Step 3: Create API Token for Machines API
fly tokens create deploy -a my-app
fly tokens create org
curl -s -H "Authorization: Bearer $FLY_API_TOKEN" \
https://api.machines.dev/v1/apps | jq '.[].name'
Step 4: Verify Machines API Access
const FLY_API = 'https://api.machines.dev';
async function verifyFlyAccess() {
const res = await fetch(`${FLY_API}/v1/apps`, {
headers: { : },
});
apps = res.();
.();
apps.( .());
}