Get real time access to Covid-19 stats for Indian states on your terminal
# Install globally (recommended).
npm install -g covidindia-cli
# Or run directly with npx (installs CLI on every run).
npx covidindia-cli
# Display data for all states.
covidindia-cli
# Display data for all states sorted by deceased count.
covidindia-cli --sort deceased
# Display data for given state.
covidindia-cli <stateNameOrCode>
# Display data for given state i.e. Karnataka
covidindia-cli ka
# or
covidindia-cli karnataka
# Display data for given state i.e. Maharashtra
covidindia-cli mh
# or
covidindia-cli maharashtra
# Display district level data for given state.
covidindia-cli <stateNameOrCode> --district
# or
covidindia-cli <stateNameOrCode> -d
# Display district level data for given state i.e. Karnataka
covidindia-cli ka --district
# or
covidindia-cli ka -d
# Display district level data for given state i.e. Maharashtra
covidindia-cli mh --district
# or
covidindia-cli mh -d
# Display only top 10 results. Can be used in combination with --sort.
covidindia-cli --head 10
# Display only bottom 10 results. Can be used in combination with --sort.
covidindia-cli -h 10
Please note that you can also execute the above cli with just covidindia
instead of covidindia-cli
Data is fetched from https://api.covid19india.org
Inspired by https://github.com/ahmadawais/corona-cli