0.0.6 • Published 7 years ago
wmata-cli v0.0.6
WMATA CLI
Retrieve incoming trains without leaving your terminal.
All data comes from WMATA Developer APIs.
Install
In order to use wmata-cli, make sure that you have Node version 12.0.0 or higher.
$ npm install -g wmata-cliUsage
wmata-cli provides three main commands.
List
List all stations belonging to the specified line color. Trains can be listed from the Orange, Blue, Silver, Red, Green, and Yellow lines.
See all stations on the Orange line
$ wmata-cli list -c OrangeStation
List all incoming trains belonging to the specified station. If unsure of the station name use the list command.
See all trains coming into the Smithsonian station
$ wmata-cli station SmithsonianIncidents
List any incidents affecting the system. Most of the time this command will return nothing.
See all incidents throught the Metro system
$ wmata-cli incidentsLicense
MIT