Fly.ioTutorial
Get fly with your Fly command line
Summary
Fly’s command-line tool, available as both flyctl and fly on most platforms, includes shortcuts and options that reduce directory changes and browser navigation. App selection can use -a appname instead of relying on the current directory’s fly.toml; fly deploy can also build from a specified child directory, such as ./mygreatchildapp. When a fly.toml is present, the command asks for confirmation that the supplied app name should be used. Multiple deployment variants can be kept in separately named configuration files and selected with -c or --config, including when deploying from a monorepo tree. Browser-oriented commands include fly open for an app’s .fly.dev URL, fly dash metrics for dashboard metrics, and fly docs for the documentation’s top page.
Context
The post collects lesser-known flyctl and fly features as practical tips for using Fly commands more efficiently, including working with apps outside the current directory and opening Fly web pages directly from the command line.
Approach / What changed
It explains command aliases, app selection, deployment paths, alternate configuration files, and browser-opening commands with concrete command examples such as fly status -a mygreatapp99, fly deploy ./mygreatchildapp, and fly deploy -c preview.toml.
Takeaways
On most platforms, flyctl and fly are interchangeable, and -a appname can select an app without changing directories; an existing fly.toml prompts for confirmation.
fly deploy ./mygreatchildapp finds the fly.toml in that child directory, while -c or --config selects a named configuration such as preview.toml.
fly open resolves and opens the app’s .fly.dev URL; fly dash metrics opens dashboard metrics, and fly docs opens the documentation’s top page.
Source and freshness
- Source
- fly.io
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.