Skip to main content
The Fli CLI provides a fast, terminal-based interface for searching flights using Google Flights data. It offers two main commands for different search scenarios.

Installation

Install Fli using pip or uv:
pip install fli
uv pip install fli

Quick start

Search for flights with just the essentials:
fli JFK LHR 2025-10-25
The CLI automatically treats non-command arguments as flight searches, so you can omit the flights command.

Main commands

flights

Search for flights on a specific date with various filtering options.
fli flights JFK LHR 2025-10-25 --return 2025-11-01
Learn more in flights command.

dates

Find the cheapest dates to fly within a date range.
fli dates LAX MIA --from 2025-12-01 --to 2025-12-31
Learn more in dates command.

Smart command inference

The CLI is designed for speed. If you don’t specify a command, it assumes you’re searching for flights:
fli flights JFK LHR 2025-10-25
This makes quick searches faster to type.

Getting help

View available commands:
fli --help
Get help for a specific command:
fli flights --help
fli dates --help

Terminal output

Fli uses Rich terminal formatting to display results in beautiful, readable tables with:
  • Color-coded flight information
  • Formatted prices and durations
  • Airline and airport details
  • Clear segment breakdowns for multi-leg flights
  • Price trend charts for date searches
The CLI displays up to 10 flight options by default, sorted by your chosen criteria (price, duration, or time).

Common use cases

fli JFK LAX 2025-10-25

Round-trip with specific airlines

fli JFK LHR 2025-10-25 --return 2025-11-01 --airlines BA AA

Business class non-stop flights

fli SFO NRT 2025-11-15 --class BUSINESS --stops 0

Find cheapest weekend departures

fli dates JFK MIA --from 2025-12-01 --to 2025-12-31 --friday --saturday --sunday

Next steps

flights command

Search for flights on specific dates

dates command

Find the cheapest travel dates

Build docs developers (and LLMs) love