Skip to content

superfly/flyctl

Folders and files

NameName
Last commit message
Last commit date
Mar 13, 2023
Dec 18, 2024
Aug 18, 2023
Nov 25, 2024
Feb 24, 2023
Aug 30, 2023
Mar 24, 2021
Oct 23, 2024
Feb 14, 2024
Oct 21, 2024
Oct 3, 2024
Sep 24, 2024
Jul 26, 2023
Jan 21, 2025
Feb 21, 2024
Jul 1, 2022
Nov 25, 2024
Jun 20, 2024
Jan 8, 2025
Jun 13, 2024
Apr 15, 2024
Jul 5, 2023
Dec 19, 2024
Jul 2, 2024
Aug 12, 2024
Jan 17, 2020
Oct 20, 2023
Feb 14, 2024
Oct 16, 2024
Feb 29, 2024
Feb 14, 2024
Nov 17, 2023
Dec 29, 2021
Feb 14, 2024
Jan 29, 2020
Mar 21, 2024
Sep 6, 2024
Aug 11, 2022
Feb 9, 2024
Feb 9, 2024
Feb 14, 2024
Jan 21, 2025
Jan 21, 2025
Jul 4, 2023
Sep 11, 2023
Feb 9, 2024
May 5, 2023

Repository files navigation

flyctl

flyctl is a command-line interface for fly.io

Note: Most installations of flyctl also alias flyctl to fly as a command name and this will become the default name in the future. During the transition, note that where you see flyctl as a command it can be replaced with fly.

Installation

Using a Package Manager

Homebrew (macOS, Linux, WSL)

brew install flyctl

To upgrade to the latest version:

brew upgrade flyctl

Install Script

Download flyctl and install into a local bin directory.

MacOS, Linux, WSL

Installing the latest version:

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

Installing the latest pre-release version:

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

Installing a specific version:

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

Windows

Run the Powershell install script:

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

Downloading from GitHub

Download the appropriate version from the Releases page of the flyctl GitHub repository.

Getting Started

  1. Sign into your fly account
fly auth login
  1. List your apps
fly apps list
  1. View app status
fly status -a {app-name}

App Settings

flyctl will attempt to use the app name from a fly.toml file in the current directory. For example, if the current directory contains this file:

$ cat fly.toml
app: banana

flyctl will operate against the banana app unless overridden by the -a flag or other app name setting in the command line.

Releases

flyctl is automatically released at 3 PM Eastern Standard Time Monday - Thursday. If needed, you can bump a release by running ./scripts/bump_version.sh.

Building on Windows

There is a simple Powershell script, winbuild.ps1, which will run the code generation for the help files, format them, and run a full build, leaving a new binary in the bin directory.

Running from branches on your local machine

Run scripts/build-dfly to build a Docker image from the current branch. Then, use scripts/dfly to run it. This assumes you are already authenticated to Fly in your local environment.

Contributing guide

See CONTRIBUTING.md