Installing flyctl

Flyctl is a command-line utility that lets you work with Fly, from creating your account to deploying your applications. It runs on your local device so you'll want to install the version that's appropriate for your operating system:

macOS Linux Windows

macOS

If you have the Homebrew package manager installed, flyctl can be installed in /usr/local (or wherever Brew is configured to keep installed applications) by running:

brew install superfly/tap/flyctl

If you do not have Homebrew installed, you can download and run the install script:

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

This will install flyctl in $HOME/.fly/bin and it will instruct you to add that directory to your path.

Set the environment variable FLYCTL_INSTALL to set the directory for flyctl to be installed in and it will be installed a bin directory of the FLYCTL_INSTALL directory. For example, if you want to install flyctl in /usr/local/bin, use:

curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh

Arch Linux

flyctl-bin is available in the Arch User Repository. You can install it with pacman -S flyctl-bin.

Linux

Run the install script:

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

This will install flyctl in $HOME/.fly/bin and it will instruct you to add that directory to your path.

Set the environment variable FLYCTL_INSTALL to set the directory for flyctl to be installed in and it will be installed a bin directory of the FLYCTL_INSTALL directory. For example, if you want to install flyctl in /usr/local/bin, use:

curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh

Windows

Run the Powershell install script:

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