LinuxCommandLibrary

flyctl

Manage Fly.io applications

TLDR

Sign into a Fly account

$ flyctl auth login
copy

Launch an application from a specific Dockerfile (the default path is the current working directory)
$ flyctl launch --dockerfile [path/to/dockerfile]
copy

Open the current deployed application in the default web browser
$ flyctl open
copy

Deploy the Fly applications from a specific Dockerfile
$ flyctl deploy --dockerfile [path/to/dockerfile]
copy

Open the Fly Web UI for the current application in a web browser
$ flyctl dashboard
copy

List all applications in the logged-in Fly account
$ flyctl apps list
copy

View the status of a specific running application
$ flyctl status --app [app_name]
copy

Display version information
$ flyctl version
copy

SYNOPSIS

flyctl [command] [flags]

PARAMETERS

--access-token string
    Fly.io API access token (requires --password, --username, --password-stdin or FLY_API_TOKEN env var)

--app string
    Fly app name

--config string
    Path to the fly.toml configuration file. Defaults to fly.toml in current directory

--debug
    Enable debug logging

--help
    Show help for flyctl

--json
    Output in JSON format

--verbose
    Verbose output

DESCRIPTION

Flyctl is the command-line interface (CLI) for Fly.io, a platform for deploying and running applications close to your users.

It allows you to create, manage, and deploy applications on the Fly.io platform. You can use it to manage your app's configuration, secrets, databases, and monitor its performance.

Flyctl simplifies common tasks like building application images, deploying those images to Fly.io's infrastructure, scaling your application, and managing its resources. It also integrates with other Fly.io features like global load balancing and automated backups. Essentially, flyctl is the primary tool for interacting with the Fly.io platform from your terminal.

The Fly.io philosophy is to deploy application servers close to the user by using a global network of data centers. Flyctl allows to easily orchestrate that from the command line.

<B>COMMANDS</B>

Flyctl offers a wide variety of commands to manage Fly.io applications.

Some common commands include:
flyctl auth: Authenticate with Fly.io.
flyctl apps: Manage Fly.io applications.
flyctl deploy: Deploy an application to Fly.io.
flyctl scale: Scale your application.
flyctl logs: View application logs.
flyctl volumes: Manage volumes.
flyctl status: Display application status.
Type flyctl help for a full listing.

SEE ALSO

docker(1), kubectl(1)

Copied to clipboard