Command Line¶
locomotive¶
🚆 Search train journeys from your terminal.
Examples:
locomotive search Brest Paris
locomotive [OPTIONS] COMMAND [ARGS]...
Options
-
--debug
¶
-
--stations-file
<stations_file>
¶
live¶
Show live departures and arrivals for a train station.
Examples:
locomotive live “Paris Montparnasse”
locomotive live [OPTIONS] STATION
Options
-
--color
,
--no-color
¶
Arguments
-
STATION
¶
Required argument
search¶
Search for trains.
Origin and destination can be city names (Paris), train station names (Paris Montparnasse), or train station codes (FRPMO).
Examples:
locomotive search Brest Paris
locomotive search Brest Paris –class second –date 2019-06-01
locomotive search [OPTIONS] ORIGIN DESTINATION
Options
-
--date
<date>
¶ Date (e.g 2019-06-01, 1st of June, 1er Juin …), France timezone. [default: now]
-
--class
<travel_class>
¶ Travel class. [default: second]
- Options
first|second
-
--format
<format>
¶ Output format. [default: pretty]
- Options
pretty|json
Arguments
-
ORIGIN
¶
Required argument
-
DESTINATION
¶
Required argument