How to Watch Live Cricket Scores in Linux Terminal using Cricket-CLI?


If you are a cricket fan who uses Linux, you may be wondering how to keep track of live cricket scores on your terminal. Fortunately, there is a solution that can provide you with live updates without leaving the command line interface: Cricket-CLI.

In this tutorial, we will show you how to use Cricket-CLI to watch live cricket scores in your Linux terminal. We will walk you through the installation process, explain how to use the tool, and even show you how to customize it to suit your preferences. So, if you're ready to keep up with the latest cricket scores without leaving your terminal, let's get started!

How to Watch Live Cricket Scores in Linux Terminal using Cricket-CLI?

Cricket-CLI is a command-line interface (CLI) tool that provides live score updates, detailed scorecards, and even notifications for cricket matches. It's a great tool for cricket fans who want to keep up with the latest scores without leaving their terminal.

To get started with Cricket-CLI, we need to install it on our Linux system. We can do this using various methods, such as using the package manager or downloading the tool from GitHub. In the next section of the article, we are going to explain how to install Cricket-CLI using the package manager.

If you are using a Debian-based Linux distribution, such as Ubuntu or Debian, you can install Cricket-CLI using the apt-get package manager. We simply need to open up a terminal window and enter the following command 

sudo apt-get install cricket

This will going to download and install the Cricket-CLI package on our system. Once the installation is complete, we can start using the tool to get live cricket scores in our terminal.

For Fedora, CentOS, and other RPM-based distributions, use the following command −

sudo dnf install cricket-cli

For Arch Linux and other Arch-based distributions, use the following command −

sudo pacman -S cricket-cli

For openSUSE, use the following command −

sudo zypper install cricket-cli

Now that we have installed Cricket-CLI, let's move on to the next section of the article and learn how to use it to get live cricket scores in our terminal.

Using Cricket-CLI

For using Cricket-CLI, we’re gooing to use the commands provided to get specific information about cricket matches, such as scorecards, live scores, and commentary.

1. Cricket Scores

To get the live scores for a specific cricket match, we can simply enter the following command in our terminal 

cricket scores

This will display the live scores for all the ongoing cricket matches.

LIVE CRICKET SCORES:

1. IND vs ENG, 4th Test - Day 2
   England 1st Innings - 290/10 (87.4 Overs)
   India 1st Innings - 191/10 (61.3 Overs)
   England 2nd Innings - 77/0 (25.3 Overs)
   England lead by 176 runs with 10 wickets remaining

2. SA vs AUS, 3rd T20I
   South Africa - 171/6 (20 Overs)
   Australia - 125/10 (18.5 Overs)
   South Africa won by 46 runs

We can also get the scores for a specific match by providing the match ID as an argument. For example, to get the live scores for the match between India and England, we can enter the following command 

cricket scores IND vs ENG

This will display the live scores for India vs England match.

LIVE CRICKET SCORE: IND vs ENG, 4th Test - Day 2
England 1st Innings - 290/10 (87.4 Overs)
India 1st Innings - 191/10 (61.3 Overs)
England 2nd Innings - 77/0 (25.3 Overs)
England lead by 176 runs with 10 wickets remaining

2. Cricket Scorecard

Cricket-CLI also provides a command to get detailed scorecards for a specific match. To get the scorecard for a match, we can enter the following command:

cricket scorecard <match id>

You can get the match ID for a specific cricket match from Cricket-CLI by using the cricket list command. For example, to get the score of the IND vs ENG Match, you can use the following command 

cricket scorecard 20395

The output of the above command will display the detailed scorecard of this match.

+--------------+-----------------------+---------+---------+------+-------+-------+-------+
| Batsman      | Description           |   R     |   B     | 4s   | 6s    |   SR  | Team  |
+==============+=======================+=========+=========+======+=======+=======+=======+
| Rohit Sharma | b Adil Rashid         |   37    |   25    | 6    | 1     | 148.0 | IND   |
+--------------+-----------------------+---------+---------+------+-------+-------+-------+
| Shikhar Dhawan| c Ben Stokes b Sam Curran |   4     |   12    | 0    | 0     | 33.3  | IND   |
+--------------+-----------------------+---------+---------+------+-------+-------+-------+
| Virat Kohli  | c Buttler b Topley    |   6     |   12    | 1    | 0     | 50.0  | IND   |
+--------------+-----------------------+---------+---------+------+-------+-------+-------+
| Suryakumar Yadav| not out             |   57    |   31    | 6    | 3     | 183.9 | IND   |
+--------------+-----------------------+---------+---------+------+-------+-------+-------+
| Rishabh Pant | not out                |   26    |   13    | 4    | 1     | 200.0 | IND   |
+--------------+-----------------------+---------+---------+------+-------+-------+-------+

3. Cricket Commentary

In addition to live scores and scorecards, Cricket-CLI also provides commentary updates for cricket matches. To get the commentary updates for a match, we can enter the following command 

cricket commentary <match id>

For example, to get the commentary for the India vs England match, we can enter the following command 

cricket commentary 20395

This output of the above command will display the commentary updates for India vs England match −

[Over 7.5] T Curran to SK Yadav, FOUR runs! Shimmies down and gets this wide of mid-off for a boundary! The fielder gave it a good chase, but couldn't pull it back in.
[Over 7.6] T Curran to SK Yadav, SIX runs! Looped up slower delivery, and Yadav has picked the bones out of that one! He absolutely smashes it over wide long-on and brings up his maiden fifty in T20Is in style!
[Over 8.2] Rashid to SK Yadav, SIX runs! Comes down the track and gets this straight as an arrow! Hits it high and long over the bowler's head for a maximum!
[Over 8.4] Rashid to SK Yadav, FOUR runs! Smashes this flat towards the long-off boundary, and it beats the fielder there! Surya is really taking the attack to the opposition!

These are just a few examples of commands that we can use with Cricket-CLI to get information about cricket matches. To see the full list of commands and options, we can enter the following command in our terminal 

cricket --help

This will display the help menu for Cricket-CLI, which includes all the available commands and their usage instructions.

In the next section of the article, we will learn how to customize Cricket-CLI to suit our personal preferences.

Configuring Crickey-CLI

To view the configuration options available for Cricket-CLI, we can use the cricket config command. This will display the current configuration settings for Cricket-CLI.

Here is an example of what the output of the cricket config command might look like −

1. Refresh Interval (in seconds) [Default: 30]: 30
2. Default Match ID [Default: 0]: 1420409
3. Display Mode [Default: normal]: normal

Enter the option number to modify (or press Enter to leave unchanged):

To modify a particular option, you can enter the corresponding option number and then follow the prompts to enter the new value for that option. For example, to change the refresh interval to 60 seconds, you can enter 1 at the prompt and then enter 60 when prompted for the new value. By customizing Cricket-CLI to suit our preferences, we can make it more convenient and efficient to use.

Note that the actual options and their default values may differ depending on the version of Cricket-CLI you are using.

Conclusion

In this article, we learned how to use Cricket-CLI, a command-line interface (CLI) tool that provides live score updates, detailed scorecards, and even notifications for cricket matches. We saw how to install it using package managers like apt-get, dnf, and zypper, depending on the Linux distribution. We also learned how to use commands such as cricket scores and cricket scorecard to get specific information about cricket matches such as scorecards, live scores, and commentary. With this tool, cricket fans can now keep track of live cricket scores without leaving the command line interface.

Updated on: 28-Jul-2023

115 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements