Skip to main content
Create a Fly.io API token limited to one app or one organization. Each subcommand creates a token with a different scope and prints it to stdout. Tokens are valid for 20 years unless you pass a shorter --expiry. Use deploy for an app’s CI token, org for an organization-wide token, and readonly for read-only access to an organization. The token is printed with its authorization scheme, as in ā€œFlyV1 fm2_ā€¦ā€. The ā€œFlyV1 ā€ prefix and the space after it are part of the token: copy the whole string, and quote it when you set it in a shell or a secret.

Usage

Available Commands

  • deploy - Create deploy tokens
  • machine-exec - Create a token for running commands on an app’s Machines
  • org - Create org deploy tokens
  • readonly - Create read-only org tokens
  • ssh - Create a token for SSH access to one app
  • wireguard - Create a WireGuard token

Options

Global Options

See Also