Skip to main content

Prerequisites

Install flyctl

macOS

If using homebrew,
brew install flyctl
Otherwise,
curl -L https://fly.io/install.sh | sh
If you used curl to install flyctl, then you need to add the flyctl directory to your shell rc file. Check the output of the install script for the entries to copy and paste into the file. Now you can use the fly command from any directory.

Linux

curl -L https://fly.io/install.sh | sh

Windows

pwsh -Command "iwr https://fly.io/install.ps1 -useb | iex"

Authenticate flyctl

fly auth login

Deploy to Fly.io

Fly Commands

Commands and configuration for Fly.io via the CLI
1

Add Fly.io instance

helix add fly --name production
If you don’t have a project setup, you can do so with helix init fly.
2

Build and deploy

helix push production
3

Check deployment

fly status -a my-app-production
fly logs -a my-app-production
⌘I