WP-CLI 3.0.0 was released on December 1, 2026. It is the first major version of WordPress's command-line tool since 2.0.0, with 1,444 pull requests from 99 contributors, according to the release notes. Most of the announcement covers new commands, but the breaking-changes section is the part that matters to anyone maintaining production sites: several of those changes alter the outcome of commands that usually run unattended, inside deploy scripts, scheduled jobs and CI pipelines.
What changes in 3.0.0
- The minimum PHP version is now 7.2.24, and support for PHP 5.6 through 7.2.23 is gone. The Phar now checks the PHP version at startup, and
wp cli updatechecks the requirement before updating, so an old server gets a clear error instead of a syntax failure. Compatibility extends to PHP 8.5. - WP-CLI no longer forces
memory_limitto-1. The PHP setting now applies, andwp cli infowarns when that limit looks low. - Plugins and themes managed by Git, Subversion or Mercurial are now skipped by
wp plugin updateandwp theme updateunless that is explicitly overridden. - The
unserialize()call inwp search-replacenow only allows thestdClassclass (allowed_classes => ['stdClass']), to prevent PHP object injection. A filter is available to allow other classes. - The default
--contextchanged fromclitoauto: WP-CLI picksadminorclidepending on the command. - From 3.0.0 on,
wp cli updateonly crosses major versions with--major, and download verification requires SHA-512 (the MD5 check was removed). wp packageno longer bundles Composer. Phar users still havewp package; anyone who installs WP-CLI through Composer has to requirewp-cli/package-commanddirectly.wp plugin statusandwp theme statusare deprecated in favor oflistandget; the--purgeand--no-purgeflags were removed fromwp i18n make-json; theWP_CLI_SKIP_PROMPTvariable was renamed toWP_CLI_ERROR_RERUN; the bundled Mustache library moved to version 3.
Who is affected
People who only use WP-CLI in a terminal now and then will notice little. The impact falls on teams and agencies that maintain several WordPress sites and rely on WP-CLI for automation:
- deploys that run
wp plugin update --allon a server where some plugin is tracked in Git. In 2.x that plugin was overwritten; in 3.0 it stays as it is, and the script finishes without an error; - domain or environment migrations with
wp search-replaceon databases that store serialized objects from plugin-specific classes. The announcement does not say what happens to those values, so this is the first thing to test on a copy of the database; - long-running commands on large sites (exports, listings,
search-replace) that used to work because memory was unlimited. The announcement says these commands now use less memory because they read in chunks, but a lowmemory_limitin command-line PHP can still stop them; - servers running PHP below 7.2.24, where 3.0 does not run;
- scripts that read
WP_CLI_SKIP_PROMPTor callwp plugin status.
The update itself needs attention too. The notes say that anyone already on PHP 7.2.24 or later only has to run wp cli update; the --major requirement applies only from 3.0 onward. So a job that updates WP-CLI automatically on 2.x installs can land on 3.0 before anyone has reviewed the scripts.
What to do now
3.0.0 does not fix a security issue, so there is no rush to upgrade. What needs attention now is preventing an upgrade that nobody reviewed:
- Pin the WP-CLI version in CI and on servers (download a specific Phar instead of the latest) until the scripts have been reviewed.
- Search deploy and maintenance scripts for
wp cli update,wp plugin update,wp theme update,wp search-replace,wp plugin status,WP_CLI_SKIP_PROMPTandwp i18n make-json --purge. - Run a full
search-replacemigration on a copy of the database with 3.0 and compare the result with 2.x. - Set
memory_limitexplicitly for command-line PHP on servers that run heavy commands. - On Composer installs that use
wp package, addwp-cli/package-commandto the dependencies.
This review only happens if someone is responsible for the scripts after the site is delivered. When that responsibility is not defined, it is worth reading who looks after the system once the project ends before deciding who will do the check.
What is still unclear
The release notes do not say how long the 2.x line will get fixes, or whether it will get any. They also do not say when managed hosts that ship WP-CLI preinstalled will switch versions; that switch often happens without notice to the customer, so it is worth asking support. The name of the option that forces updates of version-controlled plugins, and the exact behavior of search-replace with objects from disallowed classes, should be confirmed in each command's documentation before changing scripts.
If your company is weighing something similar or needs support on this topic, reach me on LinkedIn or WhatsApp.