Atomic CLI for MTA system train departures (NYC Subway, LIRR, Metro-North)
npm install gotrain-cli> Atomic CLI for MTA system train departures (NYC Subway, LIRR, Metro-North)
No dependencies. No config. Just trains.
Most train apps are bloated. This is one shell script.
Via npm (Recommended):
``bash`
npm install -g gotrain-cli
One-liner (Universal Bash):
`bash`
curl -sL https://raw.githubusercontent.com/gumadeiras/gotrain-cli/main/install.sh | bash
`bashSearch stations
gotrain stations penn # Search for "penn"
gotrain stations # List all stations
$3
`bash
$ gotrain stations "new haven"
🟥 MNR │ New Haven (CT) Lines: New Haven ♿ ID: MNR-149
🟥 MNR │ New Haven-State St (CT) Lines: New Haven ♿ ID: MNR-150
$ gotrain departures MNR-149
Departures for New Haven (MNR-149)
──────────────────────────────────────────────────────────
10:39 AM EST │ Grand Central (Off Peak) [Line: New Haven]
│ On Time Track 1 (Train #1539)
11:24 AM EST │ Grand Central (Off Peak) [Line: New Haven]
│ On Time Track 2 (Train #1545)
$ gotrain favorite add MNR-149 home
Added MNR-149 to favorites (Alias: home) ✅
$ gotrain departures home
🟦 Departures for New Haven (MNR-149)
──────────────────────────────────────────────────────────
...
$ gotrain alerts
⚠️ Uptown [4][5] trains are running with delays...
No description....
`Commands
| Command | Description |
|---------|-------------|
|
stations [query] | Search/list stations |
| departures | Show departures (optional destination filter) |
| arrivals | Show arrivals (optional origin filter) |
| alerts [--station | Active service alerts (optional station filter, all alerts) |
| favs [add|rm] [id] [alias] | Manage favorites (list, add, remove, toggle) |Clawdbot Integration
This tool is available as a ClawdHub skill! Use it from any chat where Clawdbot is connected.
gotrain on ClawdHubData Source
Powered by MetroFlow API — real-time MTA transit data.
Contributing
PRs are welcome! If you find any bugs or have feature requests, please open an issue. - Development: Run
./tests/test_gotrain.py` to verify changes locally.## License
MIT 🐧