WP-CLI v2.8.0 Released

After a small delay, a new version of the WP-CLI command line tool was finally released yesterday, May 31st, 2023. The new version brings several bug fixes and is designed to be compatible with PHP 8.2. Have a look at the release notes on make.wordpress.org!

What is WP-CLI?

WP-CLI on WordPressin virallinen komentorivityökalu, jolla voit hallita kaikkia WordPress -sivustojasi helposti. Työkalu on suunniteltu erityisesti ylläpitäjien ja kehittäjien käyttöön. WP-CLI:n komentolistan ja viralliset ohjeet löydät WordPressin kehittäjäsivuilta, eli täältä.

WP-CLI is the official command line tool for WordPress. It allows you to manage all your WordPress sites easily and effectively. Especially designed for site administrators and developers, the WP-CLI command list, as well as its official documentation and guides can be found on developer.wordpress.org.

WP-CLI 2.8.0

How to Use WP-CLI?

You can use WP-CLI commands on your own WordPress site: just connect to your WordPress installation via SSH. At Seravo’s hosting and upkeep, we sent the SSH/SFTP credentials to your site upon confirming your order. Please check the messages you’ve received from us, or contact the person who ordered your site to gain SSH access. You can of course get in touch with us to figure out the credentials!

Looking for help with SSH? You can find instructions for SSH connection by having a look at Seravo’s Knowledge Base. Alternatively, you can take a peek at a video on YouTube for step-by-step instructions.

Please accept cookies statistics, marketing to see this content

Useful and Easy WP-CLI Commands

If you are just starting out and want to learn how to use WP-CLI, here are some easy commands to get you started!

wp core version – Check which core version your WordPress site is using

wp plugin list – List all plugins installed

wp theme list – List all themes installed

wp user list – List all WordPress users on your site

wp plugin deactivate --all – Deactivate all plugins of your site

wp plugin activate --all – Conversely, activate all plugins

wp option get home && wp option get siteurl – Show what’s been set as home and siteurl of your WordPress installation

Seravo’s Command Line Tools

Over the years, Seravo’s developers have created a number of custom commands that make managing the site even smoother. Seravo’s own commands can be useful for backing up your site and restoring backups for example, and for examining your WordPress site data, such as checking cache activity.

Examples of Commands at Seravo

If you’re not yet familiar with Seravo-specific commands and are only getting started with command line tools, try out these!

wp-check-php-version – Check which version of PHP the site is using

wp-check-http-cache – Check that the HTTP cache works

wp-purge-cache – Empty server-side cache

wp-speed-test – Test how quickly the front page of your site loads (PHP)

wp-check-passwords – Check that no weak passwords are used on your site

wp-test – Check that tests conducted prior to Seravo’s updates are OK

All Commands at Seravo

Looking for a full list of all available commands at Seravo’s hosting and upkeep? Have a look at our developer documentation!