Use tfl for London transport: tube status, journey planning, disruptions, live arrivals, bike availability, and stop search.
Setup
npm install -g @shan8851/tfl-cliTFL_APP_KEY for higher rate limits (basic usage works without any key)Status
tfl statustfl status jubileetfl status --mode tube,dlrDisruptions
tfl disruptionstfl disruptions piccadillyJourney Planning
tfl route "waterloo" "kings cross"tfl route "SE1 9SG" "EC2R 8AH"tfl route "waterloo" "bank" --arrive-by --time 09:00tfl route "waterloo" "paddington" --preference least-interchangetfl route "waterloo" "paddington" --via "bank"tfl route "SE1 9SG" "EC2R 8AH" --output journeys.0.durationMinutestfl route "waterloo" "canary wharf" --output journeys.0.legsArrivals
tfl arrivals "waterloo"tfl arrivals "king's cross" --line northern --limit 5tfl arrivals "waterloo" --direction inboundtfl arrivals "waterloo" --output arrivals.0.timeToStationSecondstfl arrivals "waterloo" --json --output arrivals.0.lineNameBikes
tfl bikes "SE1 9SG"tfl bikes "waterloo" --radius 750 --limit 5tfl bikes "SE1 9SG" --output bikePoints.0.bikestfl bikes "SE1 9SG" --output bikePoints.0Search
tfl search stops "paddington"tfl search stops "paddington" --limit 10Output
tfl status --jsontfl status --texttfl --no-color status{ ok, schemaVersion, command, requestedAt, data }{ ok, schemaVersion, command, requestedAt, error }Agent Notes
--output is available on route, arrivals, and bikesjourneys.0.durationMinutes or arrivals.0.lineNameINVALID_INPUT, missing paths return NOT_FOUNDNotes
SE1 9SG), coordinates (51.50,-0.12), and TfL stop IDs共 1 个版本