Get Portland transit information including arrivals, trip planning, and alerts. Use when user asks about buses, MAX, trains, or transit in Portland.
CLI for TriMet Portland transit data. Check arrivals, plan trips, and view alerts.
npm install -g trimet-cli
export TRIMET_APP_ID="your-key"trimet arrivals <stop-id> # Real-time arrivals
trimet arrivals 8383 --line 90 # Filter by route
trimet arrivals 8383 --json
trimet trip -f <from> -t <to>
trimet trip -f 8383 -t 9969
trimet trip -f "Pioneer Square" -t "PDX Airport"
trimet trip -f 8383 -t 9969 --arrive-by "5:30 PM"
trimet trip -f 8383 -t 9969 --depart-at "2:00 PM"
trimet trip -f 8383 -t 9969 --json
trimet next -f <from> -t <to> # Simplified view
trimet next -f 8383 -t 9969 -c 5 # Show 5 options
trimet next -f 8383 -t 9969 --line 90 # Filter by route
trimet alerts # All alerts
trimet alerts --route 90 # Alerts for route
trimet alerts --json
User: "When's the next MAX?"
trimet arrivals 8383
User: "How do I get to the airport?"
trimet trip -f "Pioneer Square" -t "PDX Airport"
User: "I need to be downtown by 5pm"
trimet trip -f <user-location-stop> -t 8383 --arrive-by "5:00 PM"
User: "Are there any delays on the Blue Line?"
trimet alerts --route 100
User: "Next trains to Beaverton"
trimet next -f 8383 -t 9969