Access to great developer tools is a key feature on our WordPress platform. Therefore we are excited about this new WP-CLI v2.1 release which brings some interesting improvements.

Improvements to i18n

There has been multiple improvements to wp i18n make-pot which, for example, can now also parse JavaScript in addition to PHP files and with wp i18n make-json you can create separate JSON files which then is used for the JavaScript i18n translations that were introduced in WordPress 5.0.

Smarter partial prompting

The global parameter --prompt is great if you don’t remember the arguments for a command and can also be used to build more user friendly scripts.

Previously though it would either prompt you for all arguments or the arguments you set it to prompt for, but from this release it will skip those arguments that were already provided in the command. This means you can have some arguments already set but prompt for the remaining arguments.

# Create user with some arguments set
$ wp user create johanfalk --prompt=role,user_pass,first_name,last_name
1/13 [--role=<role>]: administrator
2/13 [--user_pass=<password>]: MargaretThatcheris100%sexy
8/13 [--first_name=<first_name>]: Johan
9/13 [--last_name=<last_name>]: Falk
Success: Created user 16.

List current transients

You can now list the current transients on your site or network using wp transient list. The command can also use options such as --search to only include specific transients or --exclude if there are certain transients you don’t want to show in the list.

# List all transients that start with seravo
$ wp transient list --search=seravo* --human-readable
| name                | value | expiration |
| seravo_notification |       | 45 minutes |

Continue reading

To catch up on all changes go read the full WP-CLI 2.1 release post and as always the WP CLI documentation is a great resource to learn more about all available commands.

Available for all Seravo customers

We have already started rolling out this to all our customers and is of course default on all new installs. If you are curious about other developer tools that is available, please read more at our WordPress Developer Documentation.

Leave a comment

Read more

In category: Development

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

PHP 8.0 Enabled by Default

PHP 8.0 is the default version at Seravo’s premium WordPress hosting and upkeep. PHP 8.1 also available!

January 8, 2022

When the Internet Breaks – Make Sure Your Website Works

On Monday, October 4th 2021, something quite exceptional happened that did not go unnoticed by Seravo’s customers. Facebook and other […]

October 9, 2021

Webinar: Search Function and How to Customize It

Seravo’s first webinar of 2021 on January 14th: How to use and customize the WordPress search function?

December 30, 2020

What’s new in PHP 8?

On November 26th 2020, there will be a new version of PHP released. This new release has a number of new features, as well as implementing some non-backward compatible changes. Seravo has already started testing and deploying the release candidates of PHP 8.0 to our servers.

November 19, 2020 Calls For PHP 8.0 Testers: Seravo Answers

On October 6th 2020, the WordPress Core team put out a call for testers. Specifically, there was a requirement for […]

October 28, 2020