← 返回
开发者工具 中文

Deutsche Bahn CLI

Search Deutsche Bahn train connections using the bahn-cli tool. Use when you need to find train connections between German stations, check departure times, or help with travel planning. Works with station names like "Berlin Hbf", "München", "Hannover".
使用 bahn-cli 工具查询德国铁路列车连接。适用于查找德国车站间的列车连接、查询出发时间或协助旅行规划。支持“Berlin Hbf”、“München”等站名。
tobiasbischoff
开发者工具 clawhub v1.0.0 1 版本 99522.4 Key: 无需
★ 0
Stars
📥 2,709
下载
💾 1
安装
1
版本
#latest

概述

Deutsche Bahn CLI

Search train connections using the bahn-cli tool.

Installation

The tool should be installed globally or in the workspace. If not installed:

cd ~/Code/bahn-cli && npm install

Usage

Search train connections:

cd ~/Code/bahn-cli && node index.js search "<from>" "<to>" [options]

Options

  • --date YYYY-MM-DD - Departure date (default: today)
  • --time HH:MM - Departure time (default: current time)
  • --results - Number of results to show (default: 5)

Examples

Search connections from Hannover to Bonn:

cd ~/Code/bahn-cli && node index.js search "Hannover Hbf" "Bonn Hbf" --results 3

Search with specific date and time:

cd ~/Code/bahn-cli && node index.js search "Berlin" "München" --date 2026-02-05 --time 14:30

Station Names

  • Use common German station names
  • "Hbf" means Hauptbahnhof (main station)
  • Examples: "Berlin Hbf", "München Hbf", "Frankfurt(Main)Hbf", "Köln Hbf"
  • Station names are case-insensitive

Output

The tool shows:

  • Departure and arrival times
  • Platform numbers
  • Duration
  • Number of changes
  • Intermediate stops for connections with changes
  • Train numbers (ICE, IC, RE, etc.)

Notes

  • The CLI uses the db-vendo-client library
  • Some station names in output may show "undefined" (cosmetic issue, doesn't affect functionality)
  • Direct connections are listed first
  • Times are in 24-hour format

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 14:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,731
security-compliance

fizzy.do - have your agent read, understand and update your fizzy.do boards

tobiasbischoff
使用 fizzy-cli 工具在命令行中认证并管理 Fizzy 看板、卡片、评论、标签、列、用户和通知。当需要列出、创建、更新或删除 Fizzy 资源,或编写 Fizzy 工作流脚本时,请应用此技能。
★ 1 📥 2,289
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,853