https://github.com/derhuerst/vbb-cli
A CLI for Berlin & Brandenburg public transport.
https://github.com/derhuerst/vbb-cli
berlin bvg cli transit transport vbb
Last synced: 3 months ago
JSON representation
A CLI for Berlin & Brandenburg public transport.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-cli
- Owner: derhuerst
- License: isc
- Created: 2015-08-14T23:45:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T18:31:36.000Z (about 4 years ago)
- Last Synced: 2025-04-09T00:06:40.666Z (3 months ago)
- Topics: berlin, bvg, cli, transit, transport, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-cli
- Size: 114 KB
- Stars: 71
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# vbb-cli
**A command line client for [Berlin & Brandenburg public transport (VBB)](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg).** Built on top of [`vbb-hafas`](https://github.com/public-transport/vbb-hafas).
[](https://asciinema.org/a/239395)
[](https://www.npmjs.com/package/vbb-cli)
[](https://travis-ci.org/derhuerst/vbb-cli)

[](https://github.com/sponsors/derhuerst)
[](https://twitter.com/derhuerst)## Installing
```shell
npm install -g vbb-cli
```Or just run it using [`npx`](https://npmjs.com/npx).
## Usage
```
vbb-dep [station] [options]Arguments:
station Station number (like 900000023201) or search string (like "Zoo").Options:
--location -l Use current location. macOS only.
--duration -d Show departures for the next n minutes. Default: 15
--when -w A date & time string like "tomorrow 2 pm". Default: now
--products -p Allowed transportation types.
Default: suburban,subway,tram,bus,ferry,express,regional
--show-ids Show station & journey leg IDs. Default: false
``````
vbb-journey [origin] [destination] [options]Arguments:
origin Station number (e.g. 900000023201) or query (e.g. "Zoo").
destination Station number (e.g. 900000023201) or query (e.g. "Zoo").Options:
--results -r The number of journeys to show. Default: 4
--products -p Allowed transportation types. Default: "all"
"all" = "suburban,subway,tram,bus,ferry,express,regional"
--when -w A date & time string like "tomorrow 2 pm". Default: now
--show-ids Show station & journey leg IDs. Default: false
```## Contributing
If you have a question or have difficulties using `vbb-cli`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/vbb-cli/issues).