Back to Skills Hub
Deutsche Bahn CLI

Deutsche Bahn CLI

@tobiasbischoff
productivityTrain SearchCLI ToolTravel Planning

Search and query train connections on Deutsche Bahn (German Railways) using the bahn-cli command-line tool. Supports filtering by date, time, and number of results.

🚀 Deutsche Bahn CLI lets you quickly search train connections across Germany from your terminal. Simply enter your departure and arrival stations, and get real-time results showing departure times, platforms, duration, and the number of changes needed.

💡 Perfect for planning commutes, comparing travel options, or integrating train schedules into your workflow. Supports custom dates, times, and result limits—ideal for travelers, developers, and anyone who needs fast access to German rail information.

✨ Direct connections appear first, and you get detailed info like train types (ICE, IC, RE) and intermediate stops, all in an easy-to-read format.

GitHub

Requirements

bahn-cli

Deutsche Bahn CLI tool for train connection searches

db-vendo-client

Library used by bahn-cli to query Deutsche Bahn data