Basic CLI to stream live cricket scores (via cricket-live-scores API, which does require a free API key) in a terminal, for those engaged in technical work and too busy to view in browser, and just wishing to keep an eye on their match's score via an extra terminal window/tab.
- Sign up for API key, for free, at https://cricketdata.org/.
- Set environment variable
API_KEY
:export API_KEY=<api-key>
- Run:
- Via Node (requires Node>=18):
- Install:
npm install -g cricket-live-scores
- Run:
cls <team-name, whose score is required> <wait-time between score refresh, in ms>
- Example:
cls England 60000
, for England's score, refreshed every 1 minute.
- Example:
- Install:
- Via Docker:
- Set environment variables:
API_KEY
,TEAM
andWAIT_TIME_IN_MS
docker run ghcr.io/asadhasan/cricket-live-scores-cli:main
- Set environment variables:
- Via Node (requires Node>=18):
Distribute via Homebrew also.
Open a PR.