技能标识:bahn
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 工具查询火车连接。
该工具应全局安装或在工作区中安装。如果尚未安装:
bash
cd ~/Code/bahn-cli && npm install
查询火车连接:
bash
cd ~/Code/bahn-cli && node index.js search <出发地> <目的地> [选项]
查询从汉诺威到波恩的连接:
bash
cd ~/Code/bahn-cli && node index.js search Hannover Hbf Bonn Hbf --results 3
查询指定日期和时间的连接:
bash
cd ~/Code/bahn-cli && node index.js search Berlin München --date 2026-02-05 --time 14:30
该工具显示:
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 bahn-1776198514 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 bahn-1776198514 技能
skillhub install bahn-1776198514
文件大小: 1.36 KB | 发布时间: 2026-4-15 11:24