Setup
Fly CLI (flyctl)
Install and authenticate the Fly CLI used for app and infrastructure management.
When to use this page
- You need local CLI access to manage Fly apps, databases, and secrets.
- You are preparing local environment for the default deployment path.
Prerequisites
- Terminal access on your local machine or development environment.
- Fly.io account ready for authentication.
Install
Quick Install
macOS (Homebrew)
brew install flyctlLinux / WSL
curl -L https://fly.io/install.sh | shAuthentication
After installing, authenticate with your Fly.io account:
fly auth loginVerify
fly version
fly auth whoamiYou should see a valid CLI version and your authenticated Fly account.
Troubleshooting
flycommand not found: Reopen terminal or ensure install path is inPATH.- Authentication fails: Retry login and confirm browser/session allows Fly auth callback.