WordPress Command Line Interface (WP-CLI) is a command line tool for WordPress that can directly interact with the site and manage all aspects of your WordPress site. With this method, you can complete a task by simply typing in a line of code and hitting Enter.
There are possibly two types of WP-CLI commands
Once you connect to your site via SSH or open your local terminal, you can enter simple commands to perform a task, which looks like this:
We are updating the WordPress site version here:
Here are various tasks that you can perform from command line:
For more information about WP-CLI, you can refer to the WP-CLI Handbook
There are multiple ways to install WP-CLI. Refer to the Installing handbook page to know more.
Check out this video for basic WP-CLI installation and configuring a website using it.