{"id":15592209,"url":"https://github.com/derhuerst/db-cli","last_synced_at":"2025-04-15T05:28:27.540Z","repository":{"id":47043769,"uuid":"130761538","full_name":"derhuerst/db-cli","owner":"derhuerst","description":"A CLI for Deutsche Bahn.","archived":false,"fork":false,"pushed_at":"2021-09-16T00:15:45.000Z","size":15,"stargazers_count":8,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T06:06:00.811Z","etag":null,"topics":["cli","db","deutsche-bahn","germany","public-transport","transit"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/db-cli#db-cli","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-23T21:57:41.000Z","updated_at":"2024-11-27T20:42:48.000Z","dependencies_parsed_at":"2022-09-10T19:41:43.374Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/db-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/db-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249012881,"owners_count":21198282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","db","deutsche-bahn","germany","public-transport","transit"],"created_at":"2024-10-02T23:58:41.998Z","updated_at":"2025-04-15T05:28:27.521Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://patreon.com/derhuerst"],"categories":[],"sub_categories":[],"readme":"# db-cli\n\n**A command line client for [Deutsche Bahn](https://en.wikipedia.org/wiki/Deutsche_Bahn).**\n\n[![npm version](https://img.shields.io/npm/v/db-cli.svg)](https://www.npmjs.com/package/db-cli)\n[![build status](https://img.shields.io/travis/derhuerst/db-cli.svg)](https://travis-ci.org/derhuerst/db-cli)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/db-cli.svg)\n[![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install -g db-cli\n```\n\nOr just run it using [`npx`](https://npmjs.com/npx).\n\n\n## Usage\n\n```\ndb-dep [station] [options]\n\nArguments:\n    station         Station number (like 8000191) or search string (like \"Karlsruhe Hbf\").\n\nOptions:\n    --location  -l  Use current location. OS X only.\n    --duration  -d  Show departures for the next n minutes. Default: 15\n    --when      -w  A date \u0026 time string like \"tomorrow 2 pm\". Default: now\n    --products  -p  Allowed transportation types.\n                    Default: ICE,IC,EC,RE,RB,IR,S,B,F,U,T,Taxi\n```\n\n```\ndb-journey [origin] [destination] [options]\n\nArguments:\n    origin          Station number (e.g. 8000191) or query (e.g. \"Karlsruhe Hbf\").\n    destination     Station number (e.g. 8000191) or query (e.g. \"Karlsruhe Hbf\").\n\nOptions:\n    --results   -r  The number of journeys to show. Default: 4\n    --products  -p  Allowed transportation types.\n                    Default: ICE,IC,EC,RE,RB,IR,S,B,F,U,T,Taxi\n    --when      -w  A date \u0026 time string like \"tomorrow 2 pm\". Default: now\n```\n\n\n## Related\n\n- [db-hafas](https://github.com/derhuerst/db-hafas) – JavaScript client for the DB HAFAS API.\n- [hafas-cli](https://github.com/derhuerst/hafas-cli) – Build a command line interface for any HAFAS endpoint.\n- [`1.db.transport.rest` *Deutsche Bahn* public transport API](https://github.com/derhuerst/db-rest/blob/master/docs/index.md)\n- [db-prices](https://github.com/juliuste/db-prices) – Find the cheapest routes using the DB Sparpreise API.\n- [db-stations](https://github.com/derhuerst/db-stations) – An offline list of all DB stations.\n- [vbb-cli](https://github.com/derhuerst/vbb-cli) – A CLI for Berlin \u0026 Brandenburg public transport.\n\n## Contributing\n\nIf you have a question or have difficulties using `db-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/db-cli/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fdb-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fdb-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fdb-cli/lists"}