flights command searches for available flights on a specific departure date, with optional return date for round-trip searches.
Syntax
Required arguments
ORIGIN- Departure airport IATA code (e.g., JFK, LAX, LHR)DESTINATION- Arrival airport IATA codeDEPARTURE_DATE- Travel date in YYYY-MM-DD format
Options
Return date
Departure time window
START-END (e.g., 6-20 for 6 AM to 8 PM).
Default: Any time
Example:
Airlines
Cabin class
ECONOMY(default)PREMIUM_ECONOMYBUSINESSFIRST
Maximum stops
ANY(default) - Any number of stops0orNON_STOP- Non-stop flights only1orONE_STOP- Maximum one stop2+orTWO_PLUS_STOPS- Two or more stops
Sort order
CHEAPEST(default) - Lowest price firstDURATION- Shortest duration firstDEPARTURE_TIME- Earliest departure firstARRIVAL_TIME- Earliest arrival first
Examples
One-way economy flight
Round-trip with return date
Business class non-stop flights
Morning flights on specific airlines
Fastest flights regardless of price
Complete example with multiple filters
- Round-trip flights from JFK to LHR
- Premium economy class
- Evening departures (6 PM - 11 PM)
- British Airways or American Airlines only
- Non-stop flights
- Sorted by earliest departure time
Output format
The command displays results in formatted terminal tables showing:- Total price and breakdown (for round-trips)
- Total duration and stops
- Detailed segment information with airlines, flight numbers, airports, and times
Airport names are truncated to the first three words for readability in the terminal output.