Published
Updated

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!

Read more

In category: Development

PHP 8.3 Available at Seravo

PHP 8.3 is now available on WordPress sites hosted at Seravo.

February 22, 2024

DKIM, SPF and DMARC: Ensure Email Delivery with DNS Records

Trouble getting your emails delivered? Check out your domain’s DNS records to ensure your messages are not flagged as spam.

February 20, 2024

PHP 8.3 Released Today

PHP 8.3 has been released. Here’s what’s new and how to keep your PHP version up to date!

November 23, 2023

PHP 8.2: What’s New? 8 Key Improvements Revealed

PHP’s new and improved version, PHP 8.2, was released on November 24, 2022. Are the newly added improvements significant, and […]

February 13, 2023

PHP 8.2 Soon Available

PHP 8.2 becomes available at Seravo for developer testing. However, we recommend using PHP8 on your live WordPress site – for now!

February 3, 2023

Upcoming PHP Updates at Seravo

Since 2022 PHP 8.0 has been the default PHP version at Seravo, and is automatically enabled on all new sites. PHP 8.1 is also available, and PHP 8.2 will be soon available for developers!

January 25, 2023