wmata-cli

A CLI for WMATA

Usage no npm install needed!

<script type="module">
  import wmataCli from 'https://cdn.skypack.dev/wmata-cli';
</script>

README

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-cli

Usage

wmata-cli provides three main commands.

  1. list or ls
  2. station or s
  3. incidents or i

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 Orange

Station

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 Smithsonian

Incidents

List any incidents affecting the system. Most of the time this command will return nothing.

See all incidents throught the Metro system

$ wmata-cli incidents

License

MIT