Title: release – WP-CLI – WordPress.org

---

#  Tag Archives: release

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
2:24 am _on_ May 7, 2025     
Tags: release, v2.12.0   

# 󠀁[WP-CLI v2.12.0 Release Notes](https://make.wordpress.org/cli/2025/05/07/wp-cli-v2-12-0-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/),**
WP-CLI v2.12.0**, is now available. For this release, we had **68 contributors**
collaborate to get **382 pull requests** merged. 

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible.

This release includes numerous bug fixes and compatibility improvements, but we 
still could teach WP-CLI a few new tricks which I’ll highlight below. As always,
you can also skip directly to the [detailed changelog](https://make.wordpress.org/cli/tag/release/?output_format=md#changelog)
if you prefer.

If you already use WP-CLI, updating is as simple as `wp cli update`. Else, check
out our website for [recommended installation methods](https://wp-cli.org/#installing).

### Pluck & patch commands for caches and transients

The `cache` and `transient` commands have now also learned the subtle art of plucking
and patching. This means that you can directly manipulate individual entries in 
an array of values that these commands let you manage.

Here’s an example of how such an operation can look and how it compare to the regular
cache/transient operations:

    ```wp-block-code
    # Transient structure
    # 'some_key' => ['foo' => ['bar' => 'baz']]

    # Retrieve the transient value
    $ wp transient get some_key --format=json
    {'foo':{'bar':'baz'}}

    # Retrieve the value of the foo => bar subkey
    $ wp transient pluck some_key foo bar
    baz

    # Replace baz with bazzer
    $ wp transient patch update some_key foo bar bazzer
    Success: Updated transient 'some_key'.
    ```

### Post lists can now handle complex query flags

When using `post list`, you can now use JSONJSON JSON, or JavaScript Object Notation,
is a minimal, readable format for structuring data. It is used primarily to transmit
data between a server and web application, as an alternative to XML. notation to
provide complex query arguments to the `--tax_query`, `--meta_query` and `--post_date`
fields.

    ```wp-block-code
    $ wp post list --field=post_title --date_query='{"before":{"year":"2024"}}
    +--------------------------+
    | post_title               |
    +--------------------------+
    | My year in review - 2021 |
    | My year in review - 2022 |
    | My year in review - 2023 |
    +--------------------------+

    $ wp post list --field=post_title --tax_query='[{"taxonomy":"category","field":"slug","terms":"first-category"}]'
    ...

    $ wp post list --field=post_title --meta_query='[{"key":"key2","value":"value2b"}]'
    ...
    ```

### Post metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. can be forced to only return a single value

The `post meta get` command now has a `--single` flag defaulting to `true` which
can be negated with `--no-single`. This flag tells WordPress whether to only return
a single value or all existing values for a given key.

    ```wp-block-code
    # Create a post meta key for post with ID 123 that has multiple values
    $ wp post meta add 123 my_meta_key value_1
    $ wp post meta add 123 my_meta_key value_2
    $ wp post meta add 123 my_meta_key value_4

    # Retrieve a single value
    $ wp post meta get 123 my_meta_key --single
    value_1

    # Retrieve all values
    $ wp post meta get 123 my_meta_key --no-single --format=json
    ["value_1","value_2","value_3"]
    ```

### Exclude files on `core checksum` verification

When running a `core checksum` verification, you can exclude one or more files from
the checksum verification with the new `--exclude=<files>` flag, which takes a comma-
separated list of filepaths relative to the current root.

    ```wp-block-code
    # Make a change to the README file in the WordPress core root folder
    $ echo "nonsense" > readme.html

    # Run the core checksum verification
    $ wp core verify-checksums --exclude='readme.html'
    Success: WordPress installation verifies against checksums.
    ```

### Respect `requires` and `requires_php` tags for plugins and themes

The pluginPlugin A plugin is a piece of software containing a group of functions
that can be added to a WordPress website. They can extend functionality or add new
features to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. and theme commands now understand
and respect the `requires` and `requires_php` headerHeader The header of your site
is typically the first thing people will experience. The masthead or header art 
located across the top of your page is part of the look and feel of your website.
It can influence a visitor’s opinion about your content and you/ your organization’s
brand. It may also look different on different screen sizes. tags when trying ot
install or update extensions. A new state `unavailable` has been introduced to denote
the updates that are newer that your current installation but for which your site
does not fulfill the requirements.

This also adds new fields `requires` and `requires_php` which are displayed if they
contain relevant information and otherwise hidden by default.

    ```wp-block-code
    $ wp plugin list
    +----------------+----------+-------------+---------+----------------+-------------+----------+--------------+
    | name           | status   | update      | version | update_version | auto_update | requires | requires_php |
    +----------------+----------+-------------+---------+----------------+-------------+----------+--------------+
    | akismet        | inactive | available   | 5.1     | 5.3.5          | off         | 5.8      | 5.6.20       |
    | edit-flow      | inactive | none        | 0.9.9   |                | off         | 6.0      | 8.0          |
    | wp-super-cache | inactive | unavailable | 1.9.4   | 1.12.4         | off         | 6.5      | 7.0          |
    +----------------+----------+-------------+---------+----------------+-------------+----------+--------------+

    $ wp plugin update wp-super-cache
    Warning: wp-super-cache: This update requires WordPress version 6.5, but the version installed is 6.2.
    Error: No plugins updated.
    ```

### More control over `make-json` generation

The `make-json` command was made more powerful again. You can not only set a custom
text domain to be used, you can also define the file extension to parse.

    ```wp-block-code
    # Use a custom text domain
    $ wp i18n make-json foo-theme --domain=my-custom-domain
    Success: Created 1 file.

    # Include typescript files
    $ wp i18n make-json foo-theme --extensions=".ts, .tsx"
    Success: Created 2 files.
    ```

### Force update checks on `plugin|theme list`

When displaying the list of plugins or themes, WP-CLI now always ensures you get
fresh data. No need to manually clear transients anymore! The existing `--skip-update-
check` flag can be used to prevent this behavior.

    ```wp-block-code
    # Clears any update transients to trigger an update check and display results
    $ wp plugin list --fields=name,status,update --force-check
    +-------------+----------+--------+
    | name        | status   | update |
    +-------------+----------+--------+
    | hello-dolly | inactive | none   |
    +-------------+----------+--------+
    ```

### PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. 󠀁[https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)󠁿 8.4 Compatiblity

WP-CLI is now fully compatible with PHP 8.4. This has required quite a bit of trickery
and hacks to maintain compatibility with our current minimum of PHP 5.6+ at the 
same time. With the next release, we’ll bump the minimum PHP version to 7.2.24+,
which will allow us to get rid of all these workarounds again.

### Detailed Change Log

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle/)󠁿

 * Fix Phar path resolution with renamed binaries [[#752](https://github.com/wp-cli/wp-cli-bundle/pull/752)]
 * Deployment: Fix `FILENAME` env var [[#696](https://github.com/wp-cli/wp-cli-bundle/pull/696)]
 * Address deprecation warnings in Behat tests [[#663](https://github.com/wp-cli/wp-cli-bundle/pull/663)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli/)󠁿

 * Replace `duplicate-post` plugin with `debug-bar` in feature tests [[#6091](https://github.com/wp-cli/wp-cli/pull/6091)]
 * Use forked `mustache` library [[#6090](https://github.com/wp-cli/wp-cli/pull/6090)]
 * Escape CSV output [[#6089](https://github.com/wp-cli/wp-cli/pull/6089)]
 * Make sure existing `esc_like()` takes precedence [[#6088](https://github.com/wp-cli/wp-cli/pull/6088)]
 * Set `display_errors` to `stderr` (lowercase) instead of `STDERR` [[#6084](https://github.com/wp-cli/wp-cli/pull/6084)]
 * Fix update step for nightlies [[#6075](https://github.com/wp-cli/wp-cli/pull/6075)]
 * Detect MariaDB vs MySQLMySQL MySQL is a relational database management system.
   A database is a structured collection of data where content, configuration and
   other options are stored. [https://www.mysql.com](https://www.mysql.com/) [[#6072](https://github.com/wp-cli/wp-cli/pull/6072)]
 * Update WP-CLI update message [[#6071](https://github.com/wp-cli/wp-cli/pull/6071)]
 * Add `WP_CLI_REQUIRE` environment variable for including extra PHP files [[#6070](https://github.com/wp-cli/wp-cli/pull/6070)]
 * Remove `array_column()` compatibility function [[#6068](https://github.com/wp-cli/wp-cli/pull/6068)]
 * Support multiple files in `WP_CLI_EARLY_REQUIRE` [[#6065](https://github.com/wp-cli/wp-cli/pull/6065)]
 * Properly create missing WP-CLI configuration file when needed [[#6062](https://github.com/wp-cli/wp-cli/pull/6062)]
 * Improve command suggestions for taxonomies and post types [[#6059](https://github.com/wp-cli/wp-cli/pull/6059)]
 * Fix undefined variable issue [[#6058](https://github.com/wp-cli/wp-cli/pull/6058)]
 * Pass `working-directory` and `stdin` to docker scheme [[#5974](https://github.com/wp-cli/wp-cli/pull/5974)]&[
   [#6057](https://github.com/wp-cli/wp-cli/pull/6057)]
 * Add test for line breaks in table view [[#6055](https://github.com/wp-cli/wp-cli/pull/6055)]
 * Ensure code after `wp-settings.php` call is loaded [[#6042](https://github.com/wp-cli/wp-cli/pull/6042)]
 * Allow collecting PHPUnit coverage [[#6041](https://github.com/wp-cli/wp-cli/pull/6041)]
 * don’t forcefully `exec()` `docker version` [[#6040](https://github.com/wp-cli/wp-cli/pull/6040)]
 * Improve regular expression for detecting `wp-settings.php` [[#6039](https://github.com/wp-cli/wp-cli/pull/6039)]
 * Check PHP version requirement in update check [[#6037](https://github.com/wp-cli/wp-cli/pull/6037)]
 * Add hook to `http_request()` utility function [[#6036](https://github.com/wp-cli/wp-cli/pull/6036)]
 * Add PHPDoc for `cmd_starts_with()` method [[#6034](https://github.com/wp-cli/wp-cli/pull/6034)]
 * Update expected error message in unit tests [[#6032](https://github.com/wp-cli/wp-cli/pull/6032)]
 * Update outdated AJAX documentation link [[#6031](https://github.com/wp-cli/wp-cli/pull/6031)]
 * Add global documentation [[#6017](https://github.com/wp-cli/wp-cli/pull/6017)]
 * Allow remote binary customization [[#6013](https://github.com/wp-cli/wp-cli/pull/6013)]
 * Add configurable user agent to WP-CLI to detect in firewall logs [[#5998](https://github.com/wp-cli/wp-cli/pull/5998)]
 * Convert PHPUnit deprecations into exceptions [[#5994](https://github.com/wp-cli/wp-cli/pull/5994)]
 * Remove unused automerge workflow [[#5992](https://github.com/wp-cli/wp-cli/pull/5992)]
 * Fix CSV escaping deprecation notices [[#5991](https://github.com/wp-cli/wp-cli/pull/5991)]
 * Check for root earlier [[#5987](https://github.com/wp-cli/wp-cli/pull/5987)]
 * Remove use of `E_STRICT` for `wp_debug_mode()` [[#5986](https://github.com/wp-cli/wp-cli/pull/5986)]
 * Fix deprecation notices for `ReflectionProperty::setValue()` [[#5984](https://github.com/wp-cli/wp-cli/pull/5984)]
 * Fix “missing return type” deprecation warnings in `WP_CLI\Iterators\CSV` [[#5983](https://github.com/wp-cli/wp-cli/pull/5983)]
 * Fix implicitly nullable parameters [[#5982](https://github.com/wp-cli/wp-cli/pull/5982)]
 * Update Requests to v2.0.12 [[#5981](https://github.com/wp-cli/wp-cli/pull/5981)]
 * Update log and warning logger functions comment according to the actual functionality[
   [#5979](https://github.com/wp-cli/wp-cli/pull/5979)]
 * Add defaults and accepted values for `runcommand()` options in documentation [
   [#5953](https://github.com/wp-cli/wp-cli/pull/5953)]

#### 󠀁[wp-cli/handbook](https://github.com/wp-cli/handbook/)󠁿

 * Update documentation to include new `WP_CLI_SSH_BINARY` value [[#559](https://github.com/wp-cli/handbook/pull/559)]
 * Add documentation for newly supported `ENV` vars [[#556](https://github.com/wp-cli/handbook/pull/556)]
 * Update URLURL A specific web address of a website or web page on the Internet,
   such as a website’s URL www.wordpress.org for True-False Hosting [[#553](https://github.com/wp-cli/handbook/pull/553)]

#### 󠀁[wp-cli/cache-command](https://github.com/wp-cli/cache-command/)󠁿

 * Fix expired transients tests [[#104](https://github.com/wp-cli/cache-command/pull/104)]
 * Allow manually dispatching tests workflow [[#99](https://github.com/wp-cli/cache-command/pull/99)]
 * Make transient test more robust against added transients by coreCore Core is 
   the set of software required to run WordPress. The Core Development Team builds
   WordPress. [[#98](https://github.com/wp-cli/cache-command/pull/98)]
 * Add `pluck` & `patch` commands for caches and transients [[#89](https://github.com/wp-cli/cache-command/pull/89)]

#### 󠀁[wp-cli/checksum-command](https://github.com/wp-cli/checksum-command/)󠁿

 * Add blank space when trimming the version [[#130](https://github.com/wp-cli/checksum-command/pull/130)]
 * Add `--exclude` argument for verifying checksums [[#123](https://github.com/wp-cli/checksum-command/pull/123)]
 * Remove unused variable [[#134](https://github.com/wp-cli/checksum-command/pull/134)]
 * Don’t check missing files [[#131](https://github.com/wp-cli/checksum-command/pull/131)]

#### 󠀁[wp-cli/config-command](https://github.com/wp-cli/config-command/)󠁿

 * Don’t require file to be writable for `config has` [[#187](https://github.com/wp-cli/config-command/pull/187)]
 * Suppress output of `eval(get_wp_config_code)` preventing errors printing twice[
   [#188](https://github.com/wp-cli/config-command/pull/188)]

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Fix flaky tests due to changing download URL [[#277](https://github.com/wp-cli/core-command/pull/277)]
 * Allow installing major version with trailing zero [[#276](https://github.com/wp-cli/core-command/pull/276)]
 * Use existing `WpOrgApi` helper class [[#283](https://github.com/wp-cli/core-command/pull/283)]
 * Add doc comment for `$insecure` [[#281](https://github.com/wp-cli/core-command/pull/281)]
 * Host shouldn’t include `http://` [[#279](https://github.com/wp-cli/core-command/pull/279)]

#### 󠀁[wp-cli/cron-command](https://github.com/wp-cli/cron-command/)󠁿

 * Harden test checking for log file [[#111](https://github.com/wp-cli/cron-command/pull/111)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Correct error message in `db search` for `--format=count` [[#267](https://github.com/wp-cli/db-command/pull/267)]
 * Update `db search` documentation [[#265](https://github.com/wp-cli/db-command/pull/265)]
 * Add `--add-drop-table` to `export` command options [[#263](https://github.com/wp-cli/db-command/pull/263)]
 * Improve MariaDB detection/compatibility [[#280](https://github.com/wp-cli/db-command/pull/280)]
 * Add affected rows count for queries that can modify data in `db query` [[#277](https://github.com/wp-cli/db-command/pull/277)]
 * Don’t hardcode MySQL command names [[#275](https://github.com/wp-cli/db-command/pull/275)]

#### 󠀁[wp-cli/entity-command](https://github.com/wp-cli/entity-command/)󠁿

 * Add missing options header in `signup list` command [[#508](https://github.com/wp-cli/entity-command/pull/508)]
 * Ensure `user update` returns non-zero exit code for invalid users [[#527](https://github.com/wp-cli/entity-command/pull/527)]
 * Make `term-migrate` test more robust [[#524](https://github.com/wp-cli/entity-command/pull/524)]
 * Add a flag for getting post meta as a single value or not [[#523](https://github.com/wp-cli/entity-command/pull/523)]
 * Add JSON input support for `tax_query` and `meta_query` [[#522](https://github.com/wp-cli/entity-command/pull/522)]
 * Add JSON input support for `date_query` argument [[#520](https://github.com/wp-cli/entity-command/pull/520)]
 * `wp option` – new autoload values in autoload filterFilter Filters are one of
   the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. [[#515](https://github.com/wp-cli/entity-command/pull/515)]
 * Return a proper `WP_Error` object when failing to update a comment [[#514](https://github.com/wp-cli/entity-command/pull/514)]
 * Add test cases asserting `post/term update` error exit codes [[#513](https://github.com/wp-cli/entity-command/pull/513)]
 * Safeguard `remove cap` from collisions with roles [[#530](https://github.com/wp-cli/entity-command/pull/530)]

#### 󠀁[wp-cli/export-command](https://github.com/wp-cli/export-command/)󠁿

 * Use `get_post_stati()` instead of `get_post_statuses()` to support all registered
   post statuses in export [[#121](https://github.com/wp-cli/export-command/pull/121)]

#### 󠀁[wp-cli/extension-command](https://github.com/wp-cli/extension-command/)󠁿

 * Use `strpos()` instead of `str_contains()` in `get_wporg_data()` function [[#432](https://github.com/wp-cli/extension-command/pull/432)]
 * Don’t use transient values when doing `plugin|theme list` [[#446](https://github.com/wp-cli/extension-command/pull/446)]
 * Fix fatal error issue in `in_array()` function [[#445](https://github.com/wp-cli/extension-command/pull/445)]
 * Support `requires` and `requires_php` in `plugin|theme list` and `plugin|theme
   update` commands [[#440](https://github.com/wp-cli/extension-command/pull/440)]
 * Update logic when deleting and uninstalling plugins [[#438](https://github.com/wp-cli/extension-command/pull/438)]
 * Check WordPress and PHP requirements before installing a theme or plugin [[#436](https://github.com/wp-cli/extension-command/pull/436)]
 * Add `--force-check` flag to `wp plugin list` and `wp theme list`. [[#426](https://github.com/wp-cli/extension-command/pull/426)]
 * Cache certain GitHubGitHub GitHub is a website that offers online implementation
   of git repositories that can easily be shared, copied and modified by other developers.
   Public repositories are free to host, private repositories require a paid subscription.
   GitHub introduced the concept of the ‘pull request’ where code changes done in
   branches by contributors can be reviewed and discussed before being merged by
   the repository owner. [https://github.com/](https://github.com/) URLs [[#385](https://github.com/wp-cli/extension-command/pull/385)]

#### 󠀁[wp-cli/i18n-command](https://github.com/wp-cli/i18n-command/)󠁿

 * Convert PHPUnit deprecations to exceptions [[#413](https://github.com/wp-cli/i18n-command/pull/413)]
 * `make-pot`: scan any `theme.json` file in any level [[#424](https://github.com/wp-cli/i18n-command/pull/424)]
 * Add ability to pass extensions to `make-json` command [[#439](https://github.com/wp-cli/i18n-command/pull/439)]
 * Update schema fallback files [[#431](https://github.com/wp-cli/i18n-command/pull/431)]
 * `make-json`: Add new `--domain` argument [[#430](https://github.com/wp-cli/i18n-command/pull/430)]
 * `update-po`: merge `X-Domain` header [[#429](https://github.com/wp-cli/i18n-command/pull/429)]
 * Add `php-format` and `js-format` flags [[#428](https://github.com/wp-cli/i18n-command/pull/428)]

#### 󠀁[wp-cli/language-command](https://github.com/wp-cli/language-command/)󠁿

 * Mention `site switch-language` in readme [[#159](https://github.com/wp-cli/language-command/pull/159)]
 * Allow filtering languages by multiple statuses [[#162](https://github.com/wp-cli/language-command/pull/162)]

#### 󠀁[wp-cli/php-cli-tools](https://github.com/wp-cli/php-cli-tools/)󠁿

 * Example code: remove use of `E_STRICT` [[#175](https://github.com/wp-cli/php-cli-tools/pull/175)]
 * Fix implicitly nullable parameters [[#173](https://github.com/wp-cli/php-cli-tools/pull/173)]
 * Replace tabs in tables with 4 spaces [[#181](https://github.com/wp-cli/php-cli-tools/pull/181)]
 * Properly handle line breaks in column value [[#179](https://github.com/wp-cli/php-cli-tools/pull/179)]
 * Support line breaks and tab replacement in tabular table values [[#182](https://github.com/wp-cli/php-cli-tools/pull/182)]
 * Fix removal of trailing tab / whitespace in tabular table [[#184](https://github.com/wp-cli/php-cli-tools/pull/184)]
 * Avoid deprecation warnings in newer PHP [[#185](https://github.com/wp-cli/php-cli-tools/pull/185)]

#### 󠀁[wp-cli/rewrite-command](https://github.com/wp-cli/rewrite-command/)󠁿

 * Improve warning message in `rewrite flush` [[#69](https://github.com/wp-cli/rewrite-command/pull/69)]

#### 󠀁[wp-cli/scaffold-command](https://github.com/wp-cli/scaffold-command/)󠁿

 * Convert PHPUnit deprecations to exceptions [[#348](https://github.com/wp-cli/scaffold-command/pull/348)]
 * Add dependency checks and error handling for `svn` and download tools [[#345](https://github.com/wp-cli/scaffold-command/pull/345)]
 * Accept Bitbucket as valid CI in `scaffold plugin` [[#340](https://github.com/wp-cli/scaffold-command/pull/340)]
 * Update Bitbucket CI [[#339](https://github.com/wp-cli/scaffold-command/pull/339)]
 * Update templates for child themeChild theme A Child Theme is a customized theme
   based upon a Parent Theme. It’s considered best practice to create a child theme
   if you want to modify the CSS of your theme. [https://developer.wordpress.org/themes/advanced-topics/child-themes/](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
   scaffolding [[#342](https://github.com/wp-cli/scaffold-command/pull/342)]
 * Update custom post typeCustom Post Type WordPress can hold and display many different
   types of content. A single item of such a content is generally called a post,
   although post is also a specific post type. Custom Post Types gives your site
   the ability to have templated posts, to simplify the concept. and taxonomyTaxonomy
   A taxonomy is a way to group things together. In WordPress, some common taxonomies
   are category, link, tag, or post format. [https://codex.wordpress.org/Taxonomies#Default_Taxonomies](https://codex.wordpress.org/Taxonomies#Default_Taxonomies).
   scaffolding [[#341](https://github.com/wp-cli/scaffold-command/pull/341)]
 * Update GitLab CI configuration file [[#338](https://github.com/wp-cli/scaffold-command/pull/338)]
 * Remove `grunt` from plugin scaffolding [[#337](https://github.com/wp-cli/scaffold-command/pull/337)]

#### 󠀁[wp-cli/shell-command](https://github.com/wp-cli/shell-command/)󠁿

 * Add missing `do` construct [[#68](https://github.com/wp-cli/shell-command/pull/68)]

#### 󠀁[wp-cli/wp-config-transformer](https://github.com/wp-cli/wp-config-transformer/)󠁿

 * Add read-only option for `WPConfigTransformer` [[#54](https://github.com/wp-cli/wp-config-transformer/pull/54)]
 * Add a `branch-alias` for `dev-main` [[#55](https://github.com/wp-cli/wp-config-transformer/pull/55)]
 * Deletion of constants deletes more lines than expected [[#53](https://github.com/wp-cli/wp-config-transformer/pull/53)]

### Contributors

[@9ete](https://github.com/9ete), [@amirhmoradi](https://github.com/amirhmoradi),
[@baizmandesign](https://github.com/baizmandesign), [@benjaminprojas](https://github.com/benjaminprojas),
[@BhargavBhandari90](https://github.com/BhargavBhandari90), [@cliffordp](https://github.com/cliffordp),
[@daalderp](https://github.com/daalderp), [@dac514](https://github.com/dac514), 
[@danielbachhuber](https://github.com/danielbachhuber), [@dd32](https://github.com/dd32),
[@dkoston](https://github.com/dkoston), [@dlind1](https://github.com/dlind1), [@drzraf](https://github.com/drzraf),
[@elenachavdarova](https://github.com/elenachavdarova), [@ernilambar](https://github.com/ernilambar),
[@gedex](https://github.com/gedex), [@gitlost](https://github.com/gitlost), [@greatislander](https://github.com/greatislander),
[@herregroen](https://github.com/herregroen), [@i-am-chitti](https://github.com/i-am-chitti),
[@iDschepe](https://github.com/iDschepe), [@imrraaj](https://github.com/imrraaj),
[@itsmekopila](https://github.com/itsmekopila), [@janw-me](https://github.com/janw-me),
[@jenkoian](https://github.com/jenkoian), [@jkrrv](https://github.com/jkrrv), [@jrfnl](https://github.com/jrfnl),
[@karthick-murugan](https://github.com/karthick-murugan), [@l3ku](https://github.com/l3ku),
[@localheinz](https://github.com/localheinz), [@marksabbath](https://github.com/marksabbath),
[@matiasbenedetto](https://github.com/matiasbenedetto), [@matzeeable](https://github.com/matzeeable),
[@meszarosrob](https://github.com/meszarosrob), [@michaelw85](https://github.com/michaelw85),
[@michaelzangl](https://github.com/michaelzangl), [@mostafasoufi](https://github.com/mostafasoufi),
[@mrsdizzie](https://github.com/mrsdizzie), [@oandregal](https://github.com/oandregal),
[@ocean90](https://github.com/ocean90), [@ouikhuan](https://github.com/ouikhuan),
[@PARTHVATALIYA](https://github.com/PARTHVATALIYA), [@pbiron](https://github.com/pbiron),
[@peterwilsoncc](https://github.com/peterwilsoncc), [@petitphp](https://github.com/petitphp),
[@pfefferle](https://github.com/pfefferle), [@pmbaldha](https://github.com/pmbaldha),
[@ponsfrilus](https://github.com/ponsfrilus), [@pwtyler](https://github.com/pwtyler),
[@ramonjd](https://github.com/ramonjd), [@rodrigoprimo](https://github.com/rodrigoprimo),
[@Roy-Orbison](https://github.com/Roy-Orbison), [@saas786](https://github.com/saas786),
[@sabithahmd](https://github.com/sabithahmd), [@sdnunca](https://github.com/sdnunca),
[@shendy-a8c](https://github.com/shendy-a8c), [@shreya0204](https://github.com/shreya0204),
[@siliconforks](https://github.com/siliconforks), [@strarsis](https://github.com/strarsis),
[@swissspidy](https://github.com/swissspidy), [@todeveni](https://github.com/todeveni),
[@Tug](https://github.com/Tug), [@tyrann0us](https://github.com/tyrann0us), [@wojsmol](https://github.com/wojsmol),
[@wpeople-dev](https://github.com/wpeople-dev), [@WPprodigy](https://github.com/WPprodigy),
[@yousan](https://github.com/yousan)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-12-0](https://make.wordpress.org/cli/tag/v2-12-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2025%2F05%2F07%2Fwp-cli-v2-12-0-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
4:22 am _on_ August 8, 2024     
Tags: release, v2.11.0   

# 󠀁[WP-CLI v2.11.0 Release Notes](https://make.wordpress.org/cli/2024/08/08/wp-cli-v2-11-0-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/),**
WP-CLI v2.11.0**, is now available. For this release, we had **61 contributors**
collaborate to get **274 pull requests** merged. 

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible.

This is a small release that fixes a lot of small and not so small bugs, but we 
also have a couple of new features that I’ll want to highlight. As always, you can
also skip directly to the [detailed changelog](https://make.wordpress.org/cli/tag/release/?output_format=md#changelog)
if you prefer.

If you already use WP-CLI, updating is as simple as `wp cli update`. Else, check
out our website for [recommended installation methods](https://wp-cli.org/#installing).

Thank you for providing the additional details on the pull requests. I’ll go through
each one and provide improved highlights with examples and usage details:

### Improved CSV Handling

The CSV reading functionality has been enhanced to properly handle multi-line values.
This fix ensures that complex CSV data can be processed correctly, improving the
reliability of commands that work with CSV input.

Example of a CSV file that can now be correctly processed:

    ```wp-block-code
    id,name,description
    1,"Product A","This is a
    multi-line
    description"
    2,"Product B","Another description"
    ```

### New Signup Management Commands

New commands have been added for managing signups on multisiteMultisite Multisite
is a WordPress feature which allows users to create a network of sites on a single
WordPress installation. Available since WordPress version 3.0, Multisite is a continuation
of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued
and its features were included into WordPress core. [Advanced Administration Handbook -> Create A Network.](https://developer.wordpress.org/advanced-administration/multisite/create-network/)
installations:

 * `wp user signup list`: List signups
 * `wp user signup get`: Get details about a signup
 * `wp user signup activate`: Activate one or more signups
 * `wp user signup delete`: Delete one or more signups

Example usage:

    ```wp-block-code
    # List all signups
    $ wp user signup list

    # Activate a signup
    $ wp user signup activate johndoe@example.com

    # Delete a signup
    $ wp user signup delete 123
    ```

### New Site Generator Command

A new `wp site generate` command has been added to create multiple sites programmatically
in a multisite installation. This is useful for testing or development purposes.

Example usage:

    ```wp-block-code
    # Generate 10 new sites
    $ wp site generate --count=10

    # Generate sites with a specific slug
    $ wp site generate --count=2 --slug=testsite
    ```

### GitHubGitHub GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged by the repository owner. 󠀁[https://github.com/](https://github.com/)󠁿 Release Installation Support

The extension command now supports installing plugins and themes directly from GitHub
releases. This feature allows users to easily install and manage extensions hosted
on GitHub without manual downloads.

Example usage:

    ```wp-block-code
    # Install a plugin from its latest GitHub release
    $ wp plugin install https://github.com/username/plugin-name/releases/latest

    # Install a specific version of a theme from GitHub
    $ wp theme install https://github.com/username/theme-name/releases/tag/v1.2.3
    ```

### Improved PluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory 󠀁[https://wordpress.org/plugins/](https://wordpress.org/plugins/)󠁿 or can be cost-based plugin from a third-party. Management

A new `--recently-active` option has been added to the `plugin list` command, allowing
users to quickly identify and manage plugins that have been recently active on their
site.

Example usage:

    ```wp-block-code
    # List recently active plugins
    $ wp plugin list --recently-active

    # Activate all recently active plugins
    $ wp plugin activate $(wp plugin list --recently-active --field=name)
    ```

## Option to Delete Unknown Image Sizes

A new `--delete-unknown` flag has been added to the `wp media regenerate` command.
This allows users to remove files and image metadata for image sizes that no longer
exist in the site’s configuration, without regenerating other thumbnails.

Example usage:

    ```wp-block-code
    # Remove unknown image sizes for all images
    $ wp media regenerate --delete-unknown

    # Remove unknown image sizes for a specific image
    $ wp media regenerate 123 --delete-unknown
    ```

This feature is particularly useful for cleaning up after changing image size configurations
or removing plugins that added custom image sizes.

## User Existence Check Command

A new `wp user exists` command has been added, similar to the existing `wp post 
exists` command. This allows for quick checks on whether a user exists in the WordPress
database.

Example usage:

    ```wp-block-code
    # The user exists.
    $ wp user exists 1337
    Success: User with ID 1337 exists.
    $ echo $?
    0

    # The user does not exist.
    $ wp user exists 10000
    $ echo $?
    1
    ```

### Fish Shell Completion Support

WP-CLI now supports command completion for the Fish shell, expanding its compatibility
beyond Bash and Zsh. This addition makes it easier for Fish shell users to work 
with WP-CLI commands.

### Detailed change log

_To avoid too much noise in the list above, the following types of pull requests
have been omitted:_

 * _PRs that only bumped dependencies to their latest version._
 * _PRs that only fixed a typo in the documentation._
 * _PRs that add a Composer script_.

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle/)󠁿

 * Update versions of WP-CLI used in tests [[#658](https://github.com/wp-cli/wp-cli-bundle/pull/658)]
 * Stop testing WordPress `latest` version on PHPPHP PHP (recursive acronym for 
   PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting
   language that is especially suited for web development and can be embedded into
   HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
   < 7.2 [[#651](https://github.com/wp-cli/wp-cli-bundle/pull/651)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli/)󠁿

 * Add fish shell completion [[#5954](https://github.com/wp-cli/wp-cli/pull/5954)]
 * Add defaults and accepted values for `runcommand()` options in documentation [
   [#5953](https://github.com/wp-cli/wp-cli/pull/5953)]
 * Address warnings with filenames ending in full stop on Windows [[#5951](https://github.com/wp-cli/wp-cli/pull/5951)]
 * Fix unit tests [[#5950](https://github.com/wp-cli/wp-cli/pull/5950)]
 * Update copyright year in license [[#5942](https://github.com/wp-cli/wp-cli/pull/5942)]
 * Fix breaking multi-line CSV values on reading [[#5939](https://github.com/wp-cli/wp-cli/pull/5939)]
 * Fix broken GutenbergGutenberg The Gutenberg project is the new Editor Interface
   for WordPress. The editor improves the process and experience of creating new
   content, making writing rich content much simpler. It uses ‘blocks’ to add richness
   rather than shortcodes, custom HTML etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
   test [[#5938](https://github.com/wp-cli/wp-cli/pull/5938)]
 * Update docker runner to resolve docker path using `/usr/bin/env` [[#5936](https://github.com/wp-cli/wp-cli/pull/5936)]
 * Fix `inherit` path in nested directory [[#5930](https://github.com/wp-cli/wp-cli/pull/5930)]
 * Minor docblock improvements [[#5929](https://github.com/wp-cli/wp-cli/pull/5929)]
 * Add Signup fetcher [[#5926](https://github.com/wp-cli/wp-cli/pull/5926)]
 * Ensure the alias has the leading `@` symbol when added [[#5924](https://github.com/wp-cli/wp-cli/pull/5924)]
 * Include any non-default hook information in `CompositeCommand` [[#5921](https://github.com/wp-cli/wp-cli/pull/5921)]
 * Correct completion case when it ends in `=` [[#5913](https://github.com/wp-cli/wp-cli/pull/5913)]
 * Fix inline comments [[#5912](https://github.com/wp-cli/wp-cli/pull/5912)]
 * Update inline comments [[#5910](https://github.com/wp-cli/wp-cli/pull/5910)]
 * Add a real-world example for `cli has-command` [[#5908](https://github.com/wp-cli/wp-cli/pull/5908)]
 * Fix typos [[#5901](https://github.com/wp-cli/wp-cli/pull/5901)]
 * Avoid PHP deprecation notices in PHP 8.1.x [[#5899](https://github.com/wp-cli/wp-cli/pull/5899)]

#### 󠀁[wp-cli/handbook](https://github.com/wp-cli/handbook/)󠁿

 * Update handbook for v2.11.0 release [[#531](https://github.com/wp-cli/handbook/pull/531)]
 * Add missing scaffold package markdown files [[#529](https://github.com/wp-cli/handbook/pull/529)]
 * Fix `Undefined array key` warning [[#525](https://github.com/wp-cli/handbook/pull/525)]
 * Add files autoloader for `bin/command.php` [[#524](https://github.com/wp-cli/handbook/pull/524)]
 * Small typo correction [[#523](https://github.com/wp-cli/handbook/pull/523)]
 * Fix documentation generation error [[#520](https://github.com/wp-cli/handbook/pull/520)]
 * Add Yoast WP-CLI command to `tools.md` [[#517](https://github.com/wp-cli/handbook/pull/517)]
 * Add search and replace quick start & adding new command [[#515](https://github.com/wp-cli/handbook/pull/515)]
 * Add Composer package name [[#514](https://github.com/wp-cli/handbook/pull/514)]
 * Clean up hosting links [[#513](https://github.com/wp-cli/handbook/pull/513)]
 * Add to `hosting-companies.md` [[#512](https://github.com/wp-cli/handbook/pull/512)]
 * Remove invalid link from handbook [[#511](https://github.com/wp-cli/handbook/pull/511)]
 * Update contributor dayContributor Day Contributor Days are standalone days, frequently
   held before or after WordCamps but they can also happen at any time. They are
   events where people get together to work on various areas of [https://make.wordpress.org/](https://make.wordpress.org/)
   There are many teams that people can participate in, each with a different focus.
   [https://2017.us.wordcamp.org/contributor-day/](https://2017.us.wordcamp.org/contributor-day/)
   [https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/](https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/)
   page for WCEU 2024 [[#510](https://github.com/wp-cli/handbook/pull/510)]
 * Add documentation on Fish completions [[#508](https://github.com/wp-cli/handbook/pull/508)]
 * Add code quality setup [[#506](https://github.com/wp-cli/handbook/pull/506)]
 * Fix global parameters 404 link [[#504](https://github.com/wp-cli/handbook/pull/504)]
 * Fix release checklist hyperlink [[#503](https://github.com/wp-cli/handbook/pull/503)]
 * Fix broken link for the global parameters hyperlink [[#502](https://github.com/wp-cli/handbook/pull/502)]
 * Include hook details in documentation [[#501](https://github.com/wp-cli/handbook/pull/501)]
 * Add link to contribution tutorial videos [[#500](https://github.com/wp-cli/handbook/pull/500)]
 * Update `hosting-companies.md` [[#499](https://github.com/wp-cli/handbook/pull/499)]
 * Refresh the Hack Day page for April 2024 [[#498](https://github.com/wp-cli/handbook/pull/498)]
 * Fix branch name in common issues handbook page [[#497](https://github.com/wp-cli/handbook/pull/497)]
 * Fix common issues title [[#496](https://github.com/wp-cli/handbook/pull/496)]
 * Fix broken link [[#494](https://github.com/wp-cli/handbook/pull/494)]
 * Add Hack Day page to manifest [[#492](https://github.com/wp-cli/handbook/pull/492)]
 * Separate out the WP-CLI Hack Day and WordCampWordCamp WordCamps are casual, locally-
   organized conferences covering everything related to WordPress. They're one of
   the places where the WordPress community comes together to teach one another 
   what they’ve learned throughout the year and share the joy. [Learn more](https://central.wordcamp.org/about/).
   Contributor Day docs [[#490](https://github.com/wp-cli/handbook/pull/490)]
 * Update `running-commands-remotely.md` [[#489](https://github.com/wp-cli/handbook/pull/489)]
 * Update brew formula link [[#487](https://github.com/wp-cli/handbook/pull/487)]
 * Update `installing.md` [[#481](https://github.com/wp-cli/handbook/pull/481)]

#### 󠀁[wp-cli/cache-command](https://github.com/wp-cli/cache-command/)󠁿

 * Update failing tests after new transient in WP coreCore Core is the set of software
   required to run WordPress. The Core Development Team builds WordPress. [[#97](https://github.com/wp-cli/cache-command/pull/97)]

#### 󠀁[wp-cli/config-command](https://github.com/wp-cli/config-command/)󠁿

 * Improve messaging when shuffling salts [[#177](https://github.com/wp-cli/config-command/pull/177)]
 * Fix incorrect message shuffling salt in PHP 5.6 [[#176](https://github.com/wp-cli/config-command/pull/176)]
 * Update `config` commands examples [[#174](https://github.com/wp-cli/config-command/pull/174)]
 * Refactor `config create` command [[#181](https://github.com/wp-cli/config-command/pull/181)]

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Remove extraneous argument in `core update` example [[#255](https://github.com/wp-cli/core-command/pull/255)]
 * Fix `--format` in `core check-update` command [[#253](https://github.com/wp-cli/core-command/pull/253)]
 * Update `core` commands docs [[#251](https://github.com/wp-cli/core-command/pull/251)]

#### 󠀁[wp-cli/cron-command](https://github.com/wp-cli/cron-command/)󠁿

 * Fix `cron` commands examples [[#102](https://github.com/wp-cli/cron-command/pull/102)]
 * Add `--all` flag to `cron event delete` [[#98](https://github.com/wp-cli/cron-command/pull/98)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Add note about multisite usage in `db query` docs [[#251](https://github.com/wp-cli/db-command/pull/251)]
 * Enable `--format=<format>` for `db search` [[#247](https://github.com/wp-cli/db-command/pull/247)]
 * Update tests after change in WP `trunk` version [[#257](https://github.com/wp-cli/db-command/pull/257)]

#### 󠀁[wp-cli/embed-command](https://github.com/wp-cli/embed-command/)󠁿

 * Update examples for `embed` commands [[#75](https://github.com/wp-cli/embed-command/pull/75)]

#### 󠀁[wp-cli/entity-command](https://github.com/wp-cli/entity-command/)󠁿

 * Avoid time dependent test in `user application-password` [[#499](https://github.com/wp-cli/entity-command/pull/499)]
 * Support new upstream autoload options [[#496](https://github.com/wp-cli/entity-command/pull/496)]
 * Support nickname when creating user [[#495](https://github.com/wp-cli/entity-command/pull/495)]
 * Use `twentytwelve` theme in menu location test [[#494](https://github.com/wp-cli/entity-command/pull/494)]
 * Add examples for `option set-autoload` and `option get-autoload` commands [[#492](https://github.com/wp-cli/entity-command/pull/492)]
 * Add missing `## OPTIONS` in `CommandWithTerms` class [[#487](https://github.com/wp-cli/entity-command/pull/487)]
 * Add `user exists` command [[#486](https://github.com/wp-cli/entity-command/pull/486)]
 * Accept user login and email in `user spam` and `user unspam` commands [[#485](https://github.com/wp-cli/entity-command/pull/485)]
 * Update doc for `user spam` and `user unspam` command [[#483](https://github.com/wp-cli/entity-command/pull/483)]
 * Validate reassigning user in `user delete` command [[#482](https://github.com/wp-cli/entity-command/pull/482)]
 * Fix warning message in `user spam` command [[#481](https://github.com/wp-cli/entity-command/pull/481)]
 * Add missing `application-password` and `site meta` subcommands to readme [[#478](https://github.com/wp-cli/entity-command/pull/478)]
 * Introduce `--format=ids` in `user application-password list` [[#475](https://github.com/wp-cli/entity-command/pull/475)]
 * Fix dynamic property issue in user session class [[#470](https://github.com/wp-cli/entity-command/pull/470)]
 * Fix PHP notice in `comment recount` with invalid ID [[#469](https://github.com/wp-cli/entity-command/pull/469)]
 * Fix example for `site deactivate` command [[#468](https://github.com/wp-cli/entity-command/pull/468)]
 * Update examples in `user` commands [[#467](https://github.com/wp-cli/entity-command/pull/467)]
 * Update `term` commands examples [[#466](https://github.com/wp-cli/entity-command/pull/466)]
 * Update example output for `comment delete` command [[#465](https://github.com/wp-cli/entity-command/pull/465)]
 * Fix `menu` command output examples [[#462](https://github.com/wp-cli/entity-command/pull/462)]
 * Add `site generate` command [[#498](https://github.com/wp-cli/entity-command/pull/498)]
 * Add commands for managing signups on multisite [[#489](https://github.com/wp-cli/entity-command/pull/489)]

#### 󠀁[wp-cli/extension-command](https://github.com/wp-cli/extension-command/)󠁿

 * Improve warning message for installing and activating multiple themes [[#419](https://github.com/wp-cli/extension-command/pull/419)]
 * Replace `user-switching` plugin from feature tests [[#418](https://github.com/wp-cli/extension-command/pull/418)]
 * Update the theme in feature tests [[#417](https://github.com/wp-cli/extension-command/pull/417)]
 * Show additional plugin headerHeader The header of your site is typically the 
   first thing people will experience. The masthead or header art located across
   the top of your page is part of the look and feel of your website. It can influence
   a visitor’s opinion about your content and you/ your organization’s brand. It
   may also look different on different screen sizes. values in `plugin get <plugin
   >` output [[#414](https://github.com/wp-cli/extension-command/pull/414)]
 * Add `tested_up_to` field [[#413](https://github.com/wp-cli/extension-command/pull/413)]
 * Warn when supplying multiple themes with `theme install --activate` [[#408](https://github.com/wp-cli/extension-command/pull/408)]
 * Fix `plugin` commands examples [[#403](https://github.com/wp-cli/extension-command/pull/403)]
 * Update `theme` commands examples [[#401](https://github.com/wp-cli/extension-command/pull/401)]
 * Correct parameter type in `ParseThemeNameInput` trait [[#400](https://github.com/wp-cli/extension-command/pull/400)]
 * Add `--recently-active` option in `plugin list` command [[#424](https://github.com/wp-cli/extension-command/pull/424)]
 * Fix visibility in command class methods [[#423](https://github.com/wp-cli/extension-command/pull/423)]
 * Add support for GitHub release installation [[#421](https://github.com/wp-cli/extension-command/pull/421)]
 * Replace `edit-flow` plugin by `debug-bar` in feature tests [[#427](https://github.com/wp-cli/extension-command/pull/427)]

#### 󠀁[wp-cli/i18n-command](https://github.com/wp-cli/i18n-command/)󠁿

 * Skip strings without translation in `make-php` [[#389](https://github.com/wp-cli/i18n-command/pull/389)]
 * Add more headers to PHP translation files [[#388](https://github.com/wp-cli/i18n-command/pull/388)]
 * Use relative paths for file header references [[#384](https://github.com/wp-cli/i18n-command/pull/384)]
 * Translate “description” field from `theme.json` [[#408](https://github.com/wp-cli/i18n-command/pull/408)]
 * Revert changes to extract title from `styles.blocks.variations` [[#407](https://github.com/wp-cli/i18n-command/pull/407)]
 * find `title` string within `styles.blocks.variations` in `theme.json` [[#405](https://github.com/wp-cli/i18n-command/pull/405)]
 * Add tests for `rspack` and `esbuild` bundle output [[#404](https://github.com/wp-cli/i18n-command/pull/404)]
 * Fix deprecation warnings in unit tests [[#402](https://github.com/wp-cli/i18n-command/pull/402)]
 * Use relative paths for file header references (Windows fix) [[#400](https://github.com/wp-cli/i18n-command/pull/400)]
 * Ensure that the POT file uses the same license as the theme [[#399](https://github.com/wp-cli/i18n-command/pull/399)]
 * Add examples for `i18n update-po` command [[#392](https://github.com/wp-cli/i18n-command/pull/392)]
 * Add examples for `i18 make-pot` [[#390](https://github.com/wp-cli/i18n-command/pull/390)]

#### 󠀁[wp-cli/language-command](https://github.com/wp-cli/language-command/)󠁿

 * Update examples for `language` command [[#145](https://github.com/wp-cli/language-command/pull/145)]
 * Update examples for `language core` command [[#142](https://github.com/wp-cli/language-command/pull/142)]
 * Update examples for `language theme` command [[#141](https://github.com/wp-cli/language-command/pull/141)]
 * Update examples for `language plugin` command [[#140](https://github.com/wp-cli/language-command/pull/140)]
 * Improve warning message for unavailable language pack [[#139](https://github.com/wp-cli/language-command/pull/139)]
 * Update doc for `language core install` command [[#153](https://github.com/wp-cli/language-command/pull/153)]
 * Add `--format=count` in `language list` commands [[#151](https://github.com/wp-cli/language-command/pull/151)]
 * Update feature tests for `language core update` [[#149](https://github.com/wp-cli/language-command/pull/149)]

#### 󠀁[wp-cli/maintenance-mode-command](https://github.com/wp-cli/maintenance-mode-command/)󠁿

 * Add missing `OPTIONS` heading in `maintenance-mode activate` command [[#28](https://github.com/wp-cli/maintenance-mode-command/pull/28)]

#### 󠀁[wp-cli/media-command](https://github.com/wp-cli/media-command/)󠁿

 * Fix incorrect image sizes in `media image-size` command [[#192](https://github.com/wp-cli/media-command/pull/192)]
 * Remove extraneous error check [[#191](https://github.com/wp-cli/media-command/pull/191)]
 * Update `media` commands examples [[#189](https://github.com/wp-cli/media-command/pull/189)]
 * Optimize memory consumption when querying attachments [[#188](https://github.com/wp-cli/media-command/pull/188)]
 * Add option to delete unknown image sizes [[#199](https://github.com/wp-cli/media-command/pull/199)]

#### 󠀁[wp-cli/package-command](https://github.com/wp-cli/package-command/)󠁿

 * Update docs and examples for `package` commands [[#186](https://github.com/wp-cli/package-command/pull/186)]
 * Fix failing test [[#185](https://github.com/wp-cli/package-command/pull/185)]
 * Fix failing PHPUnit tests [[#188](https://github.com/wp-cli/package-command/pull/188)]

#### 󠀁[wp-cli/php-cli-tools](https://github.com/wp-cli/php-cli-tools/)󠁿

 * Fix unit tests [[#172](https://github.com/wp-cli/php-cli-tools/pull/172)]

#### 󠀁[wp-cli/scaffold-command](https://github.com/wp-cli/scaffold-command/)󠁿

 * Update theme tests to remove `p2` and use `twentytwelve` [[#336](https://github.com/wp-cli/scaffold-command/pull/336)]
 * Correct plugin main file in bootstrap in scaffolded test [[#335](https://github.com/wp-cli/scaffold-command/pull/335)]
 * Scaffold theme test should work in PHP greater than 8.0 [[#334](https://github.com/wp-cli/scaffold-command/pull/334)]
 * Add GitHub as valid CI for `plugin scaffold` and `theme scaffold` [[#331](https://github.com/wp-cli/scaffold-command/pull/331)]
 * Update `scaffold` command examples [[#329](https://github.com/wp-cli/scaffold-command/pull/329)]

#### 󠀁[wp-cli/search-replace-command](https://github.com/wp-cli/search-replace-command/)󠁿

 * Fix tests after change in WordPress trunk [[#195](https://github.com/wp-cli/search-replace-command/pull/195)]
 * Fix test for WordPress trunk [[#197](https://github.com/wp-cli/search-replace-command/pull/197)]

#### 󠀁[wp-cli/super-admin-command](https://github.com/wp-cli/super-admin-command/)󠁿

 * Add IDs as format for `super admin` list [[#60](https://github.com/wp-cli/super-admin-command/pull/60)]
 * Correct `super-admin` commands examples [[#57](https://github.com/wp-cli/super-admin-command/pull/57)]

#### 󠀁[wp-cli/widget-command](https://github.com/wp-cli/widget-command/)󠁿

 * Replace `p2` theme with `twentytwelve` in feature test [[#61](https://github.com/wp-cli/widget-command/pull/61)]

#### 󠀁[wp-cli/wp-config-transformer](https://github.com/wp-cli/wp-config-transformer/)󠁿

 * Fix failing PHPUnit tests [[#52](https://github.com/wp-cli/wp-config-transformer/pull/52)]

### Contributors

[@2ndkauboy](https://github.com/2ndkauboy), [@aldisruiz](https://github.com/aldisruiz),
[@austinginder](https://github.com/austinginder), [@benjaminprojas](https://github.com/benjaminprojas),
[@BrianHenryIE](https://github.com/BrianHenryIE), [@Chintesh](https://github.com/Chintesh),
[@christianwach](https://github.com/christianwach), [@cliffordp](https://github.com/cliffordp),
[@dac514](https://github.com/dac514), [@danielbachhuber](https://github.com/danielbachhuber),
[@dd32](https://github.com/dd32), [@dlind1](https://github.com/dlind1), [@drzraf](https://github.com/drzraf),
[@elenachavdarova](https://github.com/elenachavdarova), [@ernilambar](https://github.com/ernilambar),
[@gedex](https://github.com/gedex), [@gitlost](https://github.com/gitlost), [@grafruessel](https://github.com/grafruessel),
[@greatislander](https://github.com/greatislander), [@herregroen](https://github.com/herregroen),
[@huzaifaalmesbah](https://github.com/huzaifaalmesbah), [@i-am-chitti](https://github.com/i-am-chitti),
[@janw-me](https://github.com/janw-me), [@jenkoian](https://github.com/jenkoian),
[@jkrrv](https://github.com/jkrrv), [@jrfnl](https://github.com/jrfnl), [@l3ku](https://github.com/l3ku),
[@localheinz](https://github.com/localheinz), [@matzeeable](https://github.com/matzeeable),
[@meszarosrob](https://github.com/meszarosrob), [@michaelzangl](https://github.com/michaelzangl),
[@Mike-Hermans](https://github.com/Mike-Hermans), [@mrsdizzie](https://github.com/mrsdizzie),
[@oandregal](https://github.com/oandregal), [@ocean90](https://github.com/ocean90),
[@oxyc](https://github.com/oxyc), [@pbiron](https://github.com/pbiron), [@pdaalder](https://github.com/pdaalder),
[@petitphp](https://github.com/petitphp), [@pmbaldha](https://github.com/pmbaldha),
[@ponsfrilus](https://github.com/ponsfrilus), [@ramonjd](https://github.com/ramonjd),
[@rodrigoprimo](https://github.com/rodrigoprimo), [@Roy-Orbison](https://github.com/Roy-Orbison),
[@saas786](https://github.com/saas786), [@schlessera](https://github.com/schlessera),
[@Scotchester](https://github.com/Scotchester), [@sdnunca](https://github.com/sdnunca),
[@shawnhooper](https://github.com/shawnhooper), [@shendy-a8c](https://github.com/shendy-a8c),
[@siliconforks](https://github.com/siliconforks), [@strarsis](https://github.com/strarsis),
[@swissspidy](https://github.com/swissspidy), [@szepeviktor](https://github.com/szepeviktor),
[@Takshil-Kunadia](https://github.com/Takshil-Kunadia), [@tfirdaus](https://github.com/tfirdaus),
[@thelovekesh](https://github.com/thelovekesh), [@Tug](https://github.com/Tug), 
[@UmeshSingla](https://github.com/UmeshSingla), [@wojsmol](https://github.com/wojsmol),
[@yousan](https://github.com/yousan)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-11-0](https://make.wordpress.org/cli/tag/v2-11-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2024%2F08%2F08%2Fwp-cli-v2-11-0-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
5:30 pm _on_ February 8, 2024     
Tags: release, v2.10.0   

# 󠀁[WP-CLI v2.10.0 Release Notes](https://make.wordpress.org/cli/2024/02/08/wp-cli-v2-10-0-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/),**
WP-CLI v2.10.0**, is now available. For this release, we had **63 contributors**
collaborate to get **233 pull requests** merged. 

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible.

This is a small release that fixes a lot of small and not so small bugs, but we 
also have a couple of new features that I’ll want to highlight. As always, you can
also skip directly to the [detailed changelog](https://make.wordpress.org/cli/tag/release/?output_format=md#changelog)
if you prefer.

If you already use WP-CLI, updating is as simple as `wp cli update`. Else, check
out our website for [recommended installation methods](https://wp-cli.org/#installing).

### New `i18n make-php` command

The WordPress coreCore Core is the set of software required to run WordPress. The
Core Development Team builds WordPress. performance team is working on the [Performant Translations](https://make.wordpress.org/core/2023/09/05/call-for-testing-performant-translations/)
feature project, which aims to speed up translations by using PHPPHP PHP (recursive
acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose
scripting language that is especially suited for web development and can be embedded
into HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
files instead of MO files. The goal is to get it ready for WordPress 6.5.

The new `i18n make-php` command allows you to experiment with these faster translations
right away and see how these work for your projects.

    ```wp-block-code
    # Create PHP files for all PO files in the current directory.
    $ wp i18n make-php .

    # Create a PHP file from a single PO file in a specific directory.
    $ wp i18n make-php example-plugin-de_DE.po languages
    ```

### Update themes to minor or patch versions

When updating themes with WP-CLI, you can now to choose to only update to the latest
minor or patch version with the new flags `--minor` and `--patch`.

You could already do this for pluginPlugin A plugin is a piece of software containing
a group of functions that can be added to a WordPress website. They can extend functionality
or add new features to your WordPress websites. WordPress plugins are written in
the PHP programming language and integrate seamlessly with WordPress. These can 
be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. updates, and now themes are joining
the club as well.

### Support for adding and removing of multiple user roles

The two commands `user add-role` and `user remove-role` are now less lazy and can
accept multiple roles to add or remove for a given user. You can make this work 
by simply adding as many roles as needed as separate arguments.

    ```wp-block-code
    $ wp user add-role 12 author editor
    Success: Added 'author', 'editor' roles for johndoe (12).
    $ wp user remove-role 12 author editor
    Success: Removed 'author', 'editor' roles for johndoe (12).
    ```

### FilterFilter Filters are one of the two types of Hooks 󠀁[https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks)󠁿. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. the site list by user

When displaying a list of sites on your multisiteMultisite Multisite is a WordPress
feature which allows users to create a network of sites on a single WordPress installation.
Available since WordPress version 3.0, Multisite is a continuation of WPMU or WordPress
Multiuser project. WordPress MultiUser project was discontinued and its features
were included into WordPress core. [Advanced Administration Handbook -> Create A Network.](https://developer.wordpress.org/advanced-administration/multisite/create-network/)
network, you can now filter this list by a site user and only display sites that
this user is a part of. You can do so by using the new `--site_user` flag for the`
site list` command.

This can be helpful for administrative tasks around access control or for offboarding
users.

### Detailed change log

_To avoid too much noise in the list above, the following types of pull requests
have been omitted:_

 * _PRs that only bumped dependencies to their latest version._
 * _PRs that only fixed a typo in the documentation._
 * _PRs that add a Composer script_.

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle/)󠁿

 * Fix SQLite tests [[#588](https://github.com/wp-cli/wp-cli-bundle/pull/588)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli/)󠁿

 * Fix PHP deprecation warnings [[#5897](https://github.com/wp-cli/wp-cli/pull/5897)]
 * Only use `--skip-column-statistics` flag when available [[#5895](https://github.com/wp-cli/wp-cli/pull/5895)]
 * Handle unparseable tags gracefully [[#5894](https://github.com/wp-cli/wp-cli/pull/5894)]
 * `WpOrgApi`: allow specifying fields request parameters [[#5893](https://github.com/wp-cli/wp-cli/pull/5893)]
 * Remove unneeded compatibility shim [[#5885](https://github.com/wp-cli/wp-cli/pull/5885)]
 * Use `has_config()` in `get_config()` to prevent warnings on `null` values [[#5880](https://github.com/wp-cli/wp-cli/pull/5880)]
 * Suggest `'network meta'` intead of `'network option'` [[#5879](https://github.com/wp-cli/wp-cli/pull/5879)]
 * Updated docblock for `admin.php` [[#5877](https://github.com/wp-cli/wp-cli/pull/5877)]
 * Fix PHP fatals when `admin.php` has `CRLF` line endings [[#5875](https://github.com/wp-cli/wp-cli/pull/5875)]
 * Standard completion of current option [[#5873](https://github.com/wp-cli/wp-cli/pull/5873)]
 * Add `WP_CLI\Utils\has_stdin()` function [[#5872](https://github.com/wp-cli/wp-cli/pull/5872)]
 * Add verbosity level and quiet flag in ssh command based on debug flag [[#5869](https://github.com/wp-cli/wp-cli/pull/5869)]
 * Remove the pre-commit hook installation and its corresponding command [[#5868](https://github.com/wp-cli/wp-cli/pull/5868)]
 * Add missing required arguments when using `--prompt` [[#5865](https://github.com/wp-cli/wp-cli/pull/5865)]
 * Move `RecursiveDataStructureTraverser` to `wp-cli/wp-cli` package [[#5864](https://github.com/wp-cli/wp-cli/pull/5864)][
   [#5866](https://github.com/wp-cli/wp-cli/pull/5866)] [[#5871](https://github.com/wp-cli/wp-cli/pull/5871)]
 * Add `docker compose` command support in SSHSSH Secure SHell - a protocol for 
   securely connecting to a remote system in addition to or in place of a password.
   command generation [[#5863](https://github.com/wp-cli/wp-cli/pull/5863)]
 * Add missing documentation for `$data` attribute in `http_request()` [[#5861](https://github.com/wp-cli/wp-cli/pull/5861)]
 * Update inline PHP documentation [[#5853](https://github.com/wp-cli/wp-cli/pull/5853)]
 * Remove `contrib-list.php` [[#5851](https://github.com/wp-cli/wp-cli/pull/5851)]
 * Update release checklist template [[#5850](https://github.com/wp-cli/wp-cli/pull/5850)]
 * Update tests to accommodate for SQLite [[#5849](https://github.com/wp-cli/wp-cli/pull/5849)]
 * Post-release version bump after v2.9.0 [[#5848](https://github.com/wp-cli/wp-cli/pull/5848)]
 * Update `Formatter\show_table` to use `Runner->in_color` rather than `shouldColorize`[
   [#5804](https://github.com/wp-cli/wp-cli/pull/5804)]

#### 󠀁[wp-cli/handbook](https://github.com/wp-cli/handbook/)󠁿

 * Fix handbook generation when Phar is used directly [[#476](https://github.com/wp-cli/handbook/pull/476)]
 * Hack Day edits [[#474](https://github.com/wp-cli/handbook/pull/474)]
 * Refresh functional test docs [[#471](https://github.com/wp-cli/handbook/pull/471)]
 * Refresh Contributor DayContributor Day Contributor Days are standalone days, 
   frequently held before or after WordCamps but they can also happen at any time.
   They are events where people get together to work on various areas of [https://make.wordpress.org/](https://make.wordpress.org/)
   There are many teams that people can participate in, each with a different focus.
   [https://2017.us.wordcamp.org/contributor-day/](https://2017.us.wordcamp.org/contributor-day/)
   [https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/](https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/)
   Page for November 2023 Hack Day [[#470](https://github.com/wp-cli/handbook/pull/470)]

#### 󠀁[wp-cli/wp-cli.github.com](https://github.com/wp-cli/wp-cli.github.com/)󠁿

 * Update translations [[#434](https://github.com/wp-cli/wp-cli.github.com/pull/434)]
 * Fix link in `index.md` [[#433](https://github.com/wp-cli/wp-cli.github.com/pull/433)]
 * Update `ja/index.md` [[#432](https://github.com/wp-cli/wp-cli.github.com/pull/432)]

#### 󠀁[wp-cli/checksum-command](https://github.com/wp-cli/checksum-command/)󠁿

 * Add edge case handling checksum verification of `hello-dolly` plugin [[#119](https://github.com/wp-cli/checksum-command/pull/119)]

#### 󠀁[wp-cli/config-command](https://github.com/wp-cli/config-command/)󠁿

 * Add support for MySQLMySQL MySQL is a relational database management system. 
   A database is a structured collection of data where content, configuration and
   other options are stored. [https://www.mysql.com](https://www.mysql.com/) socket
   connection [[#171](https://github.com/wp-cli/config-command/pull/171)]
 * Fix tests for SQLite [[#168](https://github.com/wp-cli/config-command/pull/168)]

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Add `--force-check` flag to `check-update` command [[#246](https://github.com/wp-cli/core-command/pull/246)]
 * Improve SQLite compatibility [[#243](https://github.com/wp-cli/core-command/pull/243)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Better document `--skip-column-names` for retrieving a specific value [[#249](https://github.com/wp-cli/db-command/pull/249)]
 * Regenerate README file [[#246](https://github.com/wp-cli/db-command/pull/246)]
 * Document what `wp db check` doesn’t do and provide suggestions for next commands[
   [#244](https://github.com/wp-cli/db-command/pull/244)]

#### 󠀁[wp-cli/entity-command](https://github.com/wp-cli/entity-command/)󠁿

 * Add missing documentation [[#451](https://github.com/wp-cli/entity-command/pull/451)]
 * Add command to get the post ID by URLURL A specific web address of a website 
   or web page on the Internet, such as a website’s URL www.wordpress.org [[#449](https://github.com/wp-cli/entity-command/pull/449)]
 * Fix archiving a site by numeric slug [[#448](https://github.com/wp-cli/entity-command/pull/448)]
 * Regenerate README file [[#447](https://github.com/wp-cli/entity-command/pull/447)]
 * Add `origin` and `exclude-role-names` filters to `list-caps` command [[#445](https://github.com/wp-cli/entity-command/pull/445)]
 * Fix deleting a site by a slug that is an integer [[#444](https://github.com/wp-cli/entity-command/pull/444)]
 * Reuse `has_stdin()` from framework [[#443](https://github.com/wp-cli/entity-command/pull/443)]
 * Remove `RecursiveDataStructureTraverser` [[#442](https://github.com/wp-cli/entity-command/pull/442)]
 * Support for adding and removing of multiple user roles [[#437](https://github.com/wp-cli/entity-command/pull/437)]
 * Add examples on listing unapproved, spam and trashTrash Trash in WordPress is
   like the Recycle Bin on your PC or Trash in your Macintosh computer. Users with
   the proper permission level (administrators and editors) have the ability to 
   delete a post, page, and/or comments. When you delete the item, it is moved to
   the trash folder where it will remain for 30 days. comments [[#436](https://github.com/wp-cli/entity-command/pull/436)]
 * Fix super admin test on SQLite [[#434](https://github.com/wp-cli/entity-command/pull/434)]
 * Do not assume `get_super_admins()` has the `0` array index [[#432](https://github.com/wp-cli/entity-command/pull/432)]
 * Improve SQLite compatibility [[#431](https://github.com/wp-cli/entity-command/pull/431)]
 * Fix example for `post create` command [[#458](https://github.com/wp-cli/entity-command/pull/458)]
 * Update examples for `user application delete` command [[#457](https://github.com/wp-cli/entity-command/pull/457)]
 * Regenerate README file [[#456](https://github.com/wp-cli/entity-command/pull/456)]
 * Fix variable name in `application_name_exists` polyfill [[#455](https://github.com/wp-cli/entity-command/pull/455)]
 * Add filter `site__user_in` on `wp site list` [[#438](https://github.com/wp-cli/entity-command/pull/438)]

#### 󠀁[wp-cli/extension-command](https://github.com/wp-cli/extension-command/)󠁿

 * Regenerate README file [[#381](https://github.com/wp-cli/extension-command/pull/381)]
 * Add `update_version` to the default fields for `plugin` and `theme` commands [
   [#380](https://github.com/wp-cli/extension-command/pull/380)]
 * Update some tests for SQLite [[#378](https://github.com/wp-cli/extension-command/pull/378)]
 * Remove duplicated code [[#391](https://github.com/wp-cli/extension-command/pull/391)]
 * Switch tests to use `site-secrets` instead of `user-switching` [[#389](https://github.com/wp-cli/extension-command/pull/389)]
 * Support `'wporg_status'` and `'wporg_last_updated'` as optional `wp plugin list`
   fields [[#382](https://github.com/wp-cli/extension-command/pull/382)]
 * Regenerate README file [[#397](https://github.com/wp-cli/extension-command/pull/397)]
 * Added `--minor` and `--patch` CLICLI Command Line Interface. Terminal (Bash) 
   in Mac, Command Prompt in Windows, or WP-CLI for WordPress. option in `wp theme
   update` [[#393](https://github.com/wp-cli/extension-command/pull/393)]
 * Fix counting of errors when attempting activations [[#398](https://github.com/wp-cli/extension-command/pull/398)]

#### 󠀁[wp-cli/i18n-command](https://github.com/wp-cli/i18n-command/)󠁿

 * `make-mo`: Add destination file support [[#373](https://github.com/wp-cli/i18n-command/pull/373)]
 * Stage the correct files in schema workflow [[#370](https://github.com/wp-cli/i18n-command/pull/370)]
 * Update `theme-i18n.json` [[#366](https://github.com/wp-cli/i18n-command/pull/366)]
 * Fix file format in `make-php` [[#379](https://github.com/wp-cli/i18n-command/pull/379)]
 * Regenerate README file [[#378](https://github.com/wp-cli/i18n-command/pull/378)]
 * Add file references for plugin/theme headers [[#377](https://github.com/wp-cli/i18n-command/pull/377)]
 * Add `wp i18n make-php` command [[#363](https://github.com/wp-cli/i18n-command/pull/363)]

#### 󠀁[wp-cli/language-command](https://github.com/wp-cli/language-command/)󠁿

 * Fix tests after WordPress 6.4 release [[#133](https://github.com/wp-cli/language-command/pull/133)]
 * Skip some tests on SQLite [[#132](https://github.com/wp-cli/language-command/pull/132)]
 * Allow for PHP 8.2+ warning on old WP core [[#130](https://github.com/wp-cli/language-command/pull/130)]
 * Remove use of `@require-wp-latest` [[#135](https://github.com/wp-cli/language-command/pull/135)]
 * Re-enable some tests for SQLite [[#134](https://github.com/wp-cli/language-command/pull/134)]
 * Properly delete JSONJSON JSON, or JavaScript Object Notation, is a minimal, readable
   format for structuring data. It is used primarily to transmit data between a 
   server and web application, as an alternative to XML. & PHP translation files[
   [#137](https://github.com/wp-cli/language-command/pull/137)]

#### 󠀁[wp-cli/maintenance-mode-command](https://github.com/wp-cli/maintenance-mode-command/)󠁿

 * Evaluate `$upgrading` numeric value when checking if maintenance mode is active[
   [#22](https://github.com/wp-cli/maintenance-mode-command/pull/22)]

#### 󠀁[wp-cli/media-command](https://github.com/wp-cli/media-command/)󠁿

 * Add `--file_name=<name>` argument for `wp media import` [[#187](https://github.com/wp-cli/media-command/pull/187)]

#### 󠀁[wp-cli/package-command](https://github.com/wp-cli/package-command/)󠁿

 * Fix compatibility with newer Composer versions [[#183](https://github.com/wp-cli/package-command/pull/183)]

#### 󠀁[wp-cli/php-cli-tools](https://github.com/wp-cli/php-cli-tools/)󠁿

 * Fix `maxFlag` to `flagMax` and `maxOption` to `optionMax` typos in `HelpScreen`
   class [[#170](https://github.com/wp-cli/php-cli-tools/pull/170)]
 * Use class instead of static variables for the speed measurement [[#168](https://github.com/wp-cli/php-cli-tools/pull/168)]
 * Remove inexistent `post-install-cmd` [[#167](https://github.com/wp-cli/php-cli-tools/pull/167)]
 * Fix type hinting for prompt function [[#141](https://github.com/wp-cli/php-cli-tools/pull/141)]

#### 󠀁[wp-cli/scaffold-command](https://github.com/wp-cli/scaffold-command/)󠁿

 * Add `@require-mysql` for tests with explicit MySQL dependency [[#326](https://github.com/wp-cli/scaffold-command/pull/326)]
 * Remove Travis CI from `wp scaffold plugin-tests` [[#325](https://github.com/wp-cli/scaffold-command/pull/325)]

#### 󠀁[wp-cli/search-replace-command](https://github.com/wp-cli/search-replace-command/)󠁿

 * Skip search and replace on objects that can’t deserialize safely [[#192](https://github.com/wp-cli/search-replace-command/pull/192)]
 * PHP 8.2 Deprecation: Fix creation of dynamic property. [[#193](https://github.com/wp-cli/search-replace-command/pull/193)]

#### 󠀁[wp-cli/super-admin-command](https://github.com/wp-cli/super-admin-command/)󠁿

 * PHP 8.2 Deprecation: Fix creation of dynamic property. [[#55](https://github.com/wp-cli/super-admin-command/pull/55)]

#### 󠀁[wp-cli/wp-config-transformer](https://github.com/wp-cli/wp-config-transformer/)󠁿

 * Replace DOS line endings with LF [[#49](https://github.com/wp-cli/wp-config-transformer/pull/49)]
 * Fix empty line comment parsing by checking for the existing of a line ending [
   [#48](https://github.com/wp-cli/wp-config-transformer/pull/48)]

### Contributors

[@2ndkauboy](https://github.com/2ndkauboy), [@benjaminprojas](https://github.com/benjaminprojas),
[@benlk](https://github.com/benlk), [@christianwach](https://github.com/christianwach),
[@cliffordp](https://github.com/cliffordp), [@connerbw](https://github.com/connerbw),
[@Dan-Q](https://github.com/Dan-Q), [@danielbachhuber](https://github.com/danielbachhuber),
[@dd32](https://github.com/dd32), [@dlind1](https://github.com/dlind1), [@dougaxe1](https://github.com/dougaxe1),
[@drzraf](https://github.com/drzraf), [@elenachavdarova](https://github.com/elenachavdarova),
[@ernilambar](https://github.com/ernilambar), [@gedex](https://github.com/gedex),
[@gitlost](https://github.com/gitlost), [@greatislander](https://github.com/greatislander),
[@herregroen](https://github.com/herregroen), [@janw-me](https://github.com/janw-me),
[@jenkoian](https://github.com/jenkoian), [@johnbillion](https://github.com/johnbillion),
[@johnrom](https://github.com/johnrom), [@jrfnl](https://github.com/jrfnl), [@JulianBustamante](https://github.com/JulianBustamante),
[@kodie](https://github.com/kodie), [@krupal-panchal](https://github.com/krupal-panchal),
[@l3ku](https://github.com/l3ku), [@localheinz](https://github.com/localheinz), 
[@MarkBerube](https://github.com/MarkBerube), [@marksabbath](https://github.com/marksabbath),
[@matzeeable](https://github.com/matzeeable), [@michaelzangl](https://github.com/michaelzangl),
[@oandregal](https://github.com/oandregal), [@ocean90](https://github.com/ocean90),
[@pbiron](https://github.com/pbiron), [@pdaalder](https://github.com/pdaalder), 
[@pekkakortelainen](https://github.com/pekkakortelainen), [@pfefferle](https://github.com/pfefferle),
[@pmbaldha](https://github.com/pmbaldha), [@ponsfrilus](https://github.com/ponsfrilus),
[@rodrigoprimo](https://github.com/rodrigoprimo), [@Roy-Orbison](https://github.com/Roy-Orbison),
[@sandeshjangam](https://github.com/sandeshjangam), [@schlessera](https://github.com/schlessera),
[@sdnunca](https://github.com/sdnunca), [@sejas](https://github.com/sejas), [@selul](https://github.com/selul),
[@shail-mehta](https://github.com/shail-mehta), [@shawnhooper](https://github.com/shawnhooper),
[@shendy-a8c](https://github.com/shendy-a8c), [@siliconforks](https://github.com/siliconforks),
[@Soean](https://github.com/Soean), [@strarsis](https://github.com/strarsis), [@swissspidy](https://github.com/swissspidy),
[@thelovekesh](https://github.com/thelovekesh), [@todeveni](https://github.com/todeveni),
[@Tug](https://github.com/Tug), [@up1512001](https://github.com/up1512001), [@valeriySeregin](https://github.com/valeriySeregin),
[@wojsmol](https://github.com/wojsmol), [@wojtekn](https://github.com/wojtekn), 
[@xknown](https://github.com/xknown), [@yousan](https://github.com/yousan)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-10-0](https://make.wordpress.org/cli/tag/v2-10-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2024%2F02%2F08%2Fwp-cli-v2-10-0-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/swissspidy/) [Pascal Birchler](https://profiles.wordpress.org/swissspidy/)
11:22 am _on_ October 25, 2023     
Tags: release, [v2.9.0 ( 2 )](https://make.wordpress.org/cli/tag/v2-9-0/)

# 󠀁[WP-CLI v2.9.0 Release Notes](https://make.wordpress.org/cli/2023/10/25/wp-cli-v2-9-0-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/),**
WP-CLI v2.9.0**, is now available. For this release, we had **62 contributors** 
collaborate to get **225 pull requests** merged. 

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible.

This is a small release with the main purpose of polishing PHPPHP PHP (recursive
acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose
scripting language that is especially suited for web development and can be embedded
into HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
8.2 support and ensuring compatibility with WordPress 6.4. Nevertheless, apart from
the flurry of bugs that were fixed, we also have a few new features that I’ll want
to highlight. As always, you can also skip directly to the [detailed changelog](https://make.wordpress.org/cli/tag/release/?output_format=md#changelog)
if you prefer.

If you already use WP-CLI, updating is as simple as `wp cli update`. Else, check
out our website for [recommended installation methods](https://wp-cli.org/#installing).

### `wp config is-true`

The new `wp config is-true` command determines whether value of a specific defined
constant or variable is truthy. This is useful for scripting purposes. Example:

    ```wp-block-code
    # Assert if MULTISITE is true
    $ wp config is-true MULTISITE
    $ echo $?
    0
    ```

### Uninstalling languages for all plugins/themes at once

The `wp language plugin` and `wp language theme` commands both now support the `--
all` flag. If set, languages for all plugins will be uninstalled. This brings them
more in line with other `wp language` commands.

### Modify sites by slug

All the `wp site` subcommands, such as `wp site archive`, `wp site delete` or `wp
spam` now support a `--slug` argument instead of passing an ID. Here, the slug is
the path of the site to be modified. Subdomain on subdomain installs, directory 
on subdirectory installs.

### SSHSSH Secure SHell - a protocol for securely connecting to a remote system in addition to or in place of a password. ProxyJump support

The `wp-cli.yml` config file now supports a `proxyjump` key for hosts to specify
a common proxy for all traffic to go through. This is the equivalent of passing 
the `-J` argument to `ssh`.

### Beginning testing against SQLite

This is not a change in WP-CLI itself, but starting with WP-CLI 2.9.0, we’re now
running all automated tests against SQLite, using the [SQLite Database Integration](https://wordpress.org/plugins/sqlite-database-integration/)
feature pluginFeature Plugin A plugin that was created with the intention of eventually
being proposed for inclusion in WordPress Core. See [Features as Plugins](https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/)
developed by the community. This not only makes contributions easier (as no MySQLMySQL
MySQL is a relational database management system. A database is a structured collection
of data where content, configuration and other options are stored. [https://www.mysql.com](https://www.mysql.com/)
database server is needed), but also paves the way for eventually supporting using
WP-CLI with WordPress sites using SQLite. It’s still a long way to go, but the initial
results are very positive. More on this in the future!

In the meantime, this is a great project for our upcoming [WP-CLI Hack Day on Friday, November 10th](https://make.wordpress.org/cli/2023/10/18/save-the-date-wp-cli-hack-day-on-friday-november-10th/)!

### Detailed change log

_To avoid too much noise in the list above, the following types of pull requests
have been omitted:_

 * _PRs that only bumped dependencies to their latest version._
 * _PRs that only fixed a typo in the documentation._
 * _PRs that add an `allow-plugins` rule to Composer_.
 * _PRs that add a Composer script_.

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle/)󠁿

 * Update to WPCSWordPress Community Support A public benefit corporation and a 
   subsidiary of the WordPress Foundation, [established](https://wordpressfoundation.org/news/2016/introducing-wordpress-community-support-a-public-benefit-subsidiary/)
   in 2016. v3 [[#569](https://github.com/wp-cli/wp-cli-bundle/pull/569)]
 * No longer necessary to test WordPress latest with PHP 5.6 [[#568](https://github.com/wp-cli/wp-cli-bundle/pull/568)]
 * Update branch name in `wp-cli-updatedeb.sh` [[#565](https://github.com/wp-cli/wp-cli-bundle/pull/565)]
 * Update DEBIAN/control depends to support later versions of PHP [[#562](https://github.com/wp-cli/wp-cli-bundle/pull/562)]
 * Run `trunk` deployDeploy Launching code from a local development environment 
   to the production web server, so that it's available to visitors. tests against
   PHP 7 instead of PHP 5.6 [[#560](https://github.com/wp-cli/wp-cli-bundle/pull/560)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli/)󠁿

 * Add debugging output for `@when` command registration [[#5841](https://github.com/wp-cli/wp-cli/pull/5841)]
 * Fix `--skip-themes` for WordPress 6.4 [[#5840](https://github.com/wp-cli/wp-cli/pull/5840)]
 * Update `phpcs.xml` to match new WPCS rules [[#5836](https://github.com/wp-cli/wp-cli/pull/5836)]
 * Update to WPCS v3 [[#5834](https://github.com/wp-cli/wp-cli/pull/5834)]
 * Respect alias `--path=` in `IncludeRequestsAutoloader` [[#5830](https://github.com/wp-cli/wp-cli/pull/5830)]
 * Update type hint of `$callable` parameter in `add_command()` method [[#5828](https://github.com/wp-cli/wp-cli/pull/5828)]
 * Require PHP 7.0 for tests installing WP via Composer [[#5825](https://github.com/wp-cli/wp-cli/pull/5825)]
 * Require PHP 7+ for installing GutenbergGutenberg The Gutenberg project is the
   new Editor Interface for WordPress. The editor improves the process and experience
   of creating new content, making writing rich content much simpler. It uses ‘blocks’
   to add richness rather than shortcodes, custom HTML etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)[
   [#5824](https://github.com/wp-cli/wp-cli/pull/5824)]
 * Run test only on PHP 7.0+ [[#5823](https://github.com/wp-cli/wp-cli/pull/5823)]
 * Display a custom error message when `themes/functions.php` fatals [[#5817](https://github.com/wp-cli/wp-cli/pull/5817)]
 * Fix PHP 8.1 deprecation: `ReturnTypeWillChange` [[#5807](https://github.com/wp-cli/wp-cli/pull/5807)]
 * Add support for the proxyjump key [[#5805](https://github.com/wp-cli/wp-cli/pull/5805)]
 * Mention updating the homepage in the release process [[#5802](https://github.com/wp-cli/wp-cli/pull/5802)]

#### 󠀁[wp-cli/handbook](https://github.com/wp-cli/handbook/)󠁿

 * Add documentation for `--context` [[#466](https://github.com/wp-cli/handbook/pull/466)]
 * Remove blank line from HTMLHTML HTML is an acronym for Hyper Text Markup Language.
   It is a markup language that is used in the development of web pages and websites.
   table [[#465](https://github.com/wp-cli/handbook/pull/465)]
 * Add detailed documentation for –ssh [[#462](https://github.com/wp-cli/handbook/pull/462)]
 * Add some issues for WCUS 2023 Contributor DayContributor Day Contributor Days
   are standalone days, frequently held before or after WordCamps but they can also
   happen at any time. They are events where people get together to work on various
   areas of [https://make.wordpress.org/](https://make.wordpress.org/) There are
   many teams that people can participate in, each with a different focus. [https://2017.us.wordcamp.org/contributor-day/](https://2017.us.wordcamp.org/contributor-day/)
   [https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/](https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/)[
   [#460](https://github.com/wp-cli/handbook/pull/460)]
 * Add Rad Web Hosting Provider [[#458](https://github.com/wp-cli/handbook/pull/458)]
 * Fix handbook manifest JSONJSON JSON, or JavaScript Object Notation, is a minimal,
   readable format for structuring data. It is used primarily to transmit data between
   a server and web application, as an alternative to XML. corruption [[#457](https://github.com/wp-cli/handbook/pull/457)]
 * Add a new doc for WordCampWordCamp WordCamps are casual, locally-organized conferences
   covering everything related to WordPress. They're one of the places where the
   WordPress community comes together to teach one another what they’ve learned 
   throughout the year and share the joy. [Learn more](https://central.wordcamp.org/about/).
   Contributor Day [[#456](https://github.com/wp-cli/handbook/pull/456)]
 * Update `plugin-unit-tests.md` [[#455](https://github.com/wp-cli/handbook/pull/455)]
 * Update GitHubGitHub GitHub is a website that offers online implementation of 
   git repositories that can easily be shared, copied and modified by other developers.
   Public repositories are free to host, private repositories require a paid subscription.
   GitHub introduced the concept of the ‘pull request’ where code changes done in
   branches by contributors can be reviewed and discussed before being merged by
   the repository owner. [https://github.com/](https://github.com/) links to use
   search endpoint instead [[#453](https://github.com/wp-cli/handbook/pull/453)]
 * Fix multisiteMultisite Multisite is a WordPress feature which allows users to
   create a network of sites on a single WordPress installation. Available since
   WordPress version 3.0, Multisite is a continuation of WPMU or WordPress Multiuser
   project. WordPress MultiUser project was discontinued and its features were included
   into WordPress core. [Advanced Administration Handbook -> Create A Network.](https://developer.wordpress.org/advanced-administration/multisite/create-network/)
   search-replace example [[#451](https://github.com/wp-cli/handbook/pull/451)]
 * Adds example `--ssh=` schemes [[#450](https://github.com/wp-cli/handbook/pull/450)]
 * Adds common issue for xdebug max nesting errors. [[#449](https://github.com/wp-cli/handbook/pull/449)]
 * Add more subheadings to Functional Tests [[#448](https://github.com/wp-cli/handbook/pull/448)]
 * Added “Sort plugins or themes by certain column(s)” to “Snippets” [[#446](https://github.com/wp-cli/handbook/pull/446)]

#### 󠀁[wp-cli/cache-command](https://github.com/wp-cli/cache-command/)󠁿

 * Update to WPCS v3 [[#91](https://github.com/wp-cli/cache-command/pull/91)]
 * Add `phpcbf` Composer script [[#90](https://github.com/wp-cli/cache-command/pull/90)]
 * Update warning text during multisite cache flushes [[#88](https://github.com/wp-cli/cache-command/pull/88)]

#### 󠀁[wp-cli/checksum-command](https://github.com/wp-cli/checksum-command/)󠁿

 * Don’t warn about a `.maintenance` file in the root directory [[#114](https://github.com/wp-cli/checksum-command/pull/114)]
 * Regenerate README file [[#113](https://github.com/wp-cli/checksum-command/pull/113)]
 * Add an `--exclude=<plugin>` argument to `wp plugin verify-checksums` [[#104](https://github.com/wp-cli/checksum-command/pull/104)]
 * Update to WPCS v3 [[#116](https://github.com/wp-cli/checksum-command/pull/116)]
 * Only run tests on PHP 7.0+ [[#115](https://github.com/wp-cli/checksum-command/pull/115)]

#### 󠀁[wp-cli/config-command](https://github.com/wp-cli/config-command/)󠁿

 * Change mysql CLICLI Command Line Interface. Terminal (Bash) in Mac, Command Prompt
   in Windows, or WP-CLI for WordPress. call to native PHP function [[#158](https://github.com/wp-cli/config-command/pull/158)]
 * Update to WPCS v3 [[#163](https://github.com/wp-cli/config-command/pull/163)]
 * Slight tweaks to `wp config is-true` [[#162](https://github.com/wp-cli/config-command/pull/162)]
 * Add `wp config is-true` command [[#161](https://github.com/wp-cli/config-command/pull/161)]
 * Fail on empty table prefix [[#164](https://github.com/wp-cli/config-command/pull/164)]
 * Do not use `die()` when there is a db error [[#166](https://github.com/wp-cli/config-command/pull/166)]

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Tests: Fix tests referencing trunk/nightly [[#238](https://github.com/wp-cli/core-command/pull/238)]
 * Improve documentation for `core is-installed` command [[#237](https://github.com/wp-cli/core-command/pull/237)]
 * Update to WPCS v3 [[#241](https://github.com/wp-cli/core-command/pull/241)]
 * Only run tests on PHP 7.0+ [[#239](https://github.com/wp-cli/core-command/pull/239)]
 * Directly pass empty or missing password parameter to WordPress [[#232](https://github.com/wp-cli/core-command/pull/232)]

#### 󠀁[wp-cli/cron-command](https://github.com/wp-cli/cron-command/)󠁿

 * Update to WPCS v3 [[#100](https://github.com/wp-cli/cron-command/pull/100)]
 * Fix incorrect recurrence display for events with invalid schedules [[#99](https://github.com/wp-cli/cron-command/pull/99)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Update to WPCS v3 [[#240](https://github.com/wp-cli/db-command/pull/240)]

#### 󠀁[wp-cli/embed-command](https://github.com/wp-cli/embed-command/)󠁿

 * Replace asciinema.org in tests [[#71](https://github.com/wp-cli/embed-command/pull/71)]
 * Fix tests [[#72](https://github.com/wp-cli/embed-command/pull/72)]
 * Update to WPCS v3 [[#73](https://github.com/wp-cli/embed-command/pull/73)]

#### 󠀁[wp-cli/entity-command](https://github.com/wp-cli/entity-command/)󠁿

 * Regenerate README file [[#410](https://github.com/wp-cli/entity-command/pull/410)]
 * User: Add more examples for scoped password reset [[#409](https://github.com/wp-cli/entity-command/pull/409)]
 * Warn when deleting multisite user with no blog roles [[#408](https://github.com/wp-cli/entity-command/pull/408)]
 * PHP 8.2 Deprecation: Fix creation of dynamic property. [[#413](https://github.com/wp-cli/entity-command/pull/413)]
 * Regenerate README file [[#424](https://github.com/wp-cli/entity-command/pull/424)]
 * Fix typo for `$parent_instance` param in `RecursiveDataStructureTraverser` constructor[
   [#422](https://github.com/wp-cli/entity-command/pull/422)]
 * Update to WPCS v3 [[#419](https://github.com/wp-cli/entity-command/pull/419)]
 * Prevent unexpected missed schedules when generating new posts [[#418](https://github.com/wp-cli/entity-command/pull/418)]
 * Add `--slug=<site>` as an available parameter to `wp site` commands [[#416](https://github.com/wp-cli/entity-command/pull/416)]
 * Increase precision of `wp post generate` test [[#425](https://github.com/wp-cli/entity-command/pull/425)]

### Contributors

[@Ancocodet](https://github.com/Ancocodet), [@atoomic](https://github.com/atoomic),
[@benjaminprojas](https://github.com/benjaminprojas), [@chesio](https://github.com/chesio),
[@cliffordp](https://github.com/cliffordp), [@connerbw](https://github.com/connerbw),
[@danielbachhuber](https://github.com/danielbachhuber), [@dd32](https://github.com/dd32),
[@dlind1](https://github.com/dlind1), [@drzraf](https://github.com/drzraf), [@elenachavdarova](https://github.com/elenachavdarova),
[@fmfernandes](https://github.com/fmfernandes), [@GaryJones](https://github.com/GaryJones),
[@gedex](https://github.com/gedex), [@gitlost](https://github.com/gitlost), [@greatislander](https://github.com/greatislander),
[@herregroen](https://github.com/herregroen), [@jacksonwp](https://github.com/jacksonwp),
[@janw-me](https://github.com/janw-me), [@jenkoian](https://github.com/jenkoian),
[@jrfnl](https://github.com/jrfnl), [@justinmaurerdotdev](https://github.com/justinmaurerdotdev),
[@l3ku](https://github.com/l3ku), [@localheinz](https://github.com/localheinz), 
[@MannyAdumbire](https://github.com/MannyAdumbire), [@matzeeable](https://github.com/matzeeable),
[@michaelzangl](https://github.com/michaelzangl), [@MiguelAxcar](https://github.com/MiguelAxcar),
[@mrsdizzie](https://github.com/mrsdizzie), [@NielsdeBlaauw](https://github.com/NielsdeBlaauw),
[@oandregal](https://github.com/oandregal), [@ocean90](https://github.com/ocean90),
[@Pathan-Amaankhan](https://github.com/Pathan-Amaankhan), [@paulschreiber](https://github.com/paulschreiber),
[@pbiron](https://github.com/pbiron), [@pdaalder](https://github.com/pdaalder), 
[@petertwise](https://github.com/petertwise), [@petitphp](https://github.com/petitphp),
[@pmbaldha](https://github.com/pmbaldha), [@ponsfrilus](https://github.com/ponsfrilus),
[@rafaelzaleski](https://github.com/rafaelzaleski), [@raicem](https://github.com/raicem),
[@rodrigoprimo](https://github.com/rodrigoprimo), [@rwagner00](https://github.com/rwagner00),
[@schlessera](https://github.com/schlessera), [@shendy-a8c](https://github.com/shendy-a8c),
[@siliconforks](https://github.com/siliconforks), [@slaFFik](https://github.com/slaFFik),
[@Soean](https://github.com/Soean), [@Souptik2001](https://github.com/Souptik2001),
[@spicecadet](https://github.com/spicecadet), [@stoyan-g](https://github.com/stoyan-g),
[@strarsis](https://github.com/strarsis), [@swissspidy](https://github.com/swissspidy),
[@tubiz](https://github.com/tubiz), [@Tug](https://github.com/Tug), [@wojsmol](https://github.com/wojsmol),
[@wojtekn](https://github.com/wojtekn), [@WPprodigy](https://github.com/WPprodigy),
[@yousan](https://github.com/yousan), [@zzap](https://github.com/zzap)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-9-0](https://make.wordpress.org/cli/tag/v2-9-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2023%2F10%2F25%2Fwp-cli-v2-9-0-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/swissspidy/) [Pascal Birchler](https://profiles.wordpress.org/swissspidy/)
11:45 am _on_ October 12, 2023     
Tags: release, [v2.9.0 ( 2 )](https://make.wordpress.org/cli/tag/v2-9-0/)

# 󠀁[WP-CLI v2.9.0 release date: October 25th](https://make.wordpress.org/cli/2023/10/12/wp-cli-v2-9-0-release-date-october-25th/)󠁿

The v2.9.0 release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/)
is scheduled to be published on Wednesday, October 25th 2023.

In addition to a lot of bug fixes and enhancements, this release is also expected
to address the last known compatibility issues with PHPPHP PHP (recursive acronym
for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting
language that is especially suited for web development and can be embedded into 
HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
8.2 and the upcoming WordPress 6.4 version.

The release candidateRelease Candidate A beta version of software with the potential
to be a final product, which is ready to release unless significant bugs emerge.
for this release will already be available sometime during the week prior, to allow
for early testing. We will announce the availability of that release candidate in
the [ #hosting-community](https://wordpress.slack.com/archives/C3D6T7F8Q) channel
to allow hosting providers to do early smoke testing.

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-9-0](https://make.wordpress.org/cli/tag/v2-9-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2023%2F10%2F12%2Fwp-cli-v2-9-0-release-date-october-25th%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
8:05 am _on_ June 5, 2023     
Tags: release, v2.8.1   

# 󠀁[WP-CLI v2.8.1 Release Notes](https://make.wordpress.org/cli/2023/06/05/wp-cli-v2-8-1-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/)
is available as of today: **WP-CLI v2.8.1**. For this release, we had **3 contributors**
collaborate to get **7 pull requests** merged. 

This is a hotfix release to fix 2 critical bugs with release v2.8.0.

### Detailed change log

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle)󠁿

 * Release v2.8.1 [[#556](https://github.com/wp-cli/wp-cli-bundle/pull/556)]
 * Update Composer lock file [[#555](https://github.com/wp-cli/wp-cli-bundle/pull/555)]
 * Update wp-cli/search-replace-command to latest [[#554](https://github.com/wp-cli/wp-cli-bundle/pull/554)]
 * Avoid fatal errors when pulling in the bundle with Requests v2 via Composer [
   [#552](https://github.com/wp-cli/wp-cli-bundle/pull/552)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli)󠁿

 * Define `WP_CLI_ROOT` if needed [[#5797](https://github.com/wp-cli/wp-cli/pull/5797)]
 * Extract Requests out of Composer [[#5796](https://github.com/wp-cli/wp-cli/pull/5796)]

#### 󠀁[wp-cli/search-replace-command](https://github.com/wp-cli/search-replace-command)󠁿

 * Fix search-replace for tables with composite primary keys [[#183](https://github.com/wp-cli/search-replace-command/pull/183)]

### Contributors

[@brandonpayton](https://github.com/brandonpayton), [@danielbachhuber](https://github.com/danielbachhuber),
[@schlessera](https://github.com/schlessera)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-8-1](https://make.wordpress.org/cli/tag/v2-8-1/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2023%2F06%2F05%2Fwp-cli-v2-8-1-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
7:13 pm _on_ May 31, 2023     
Tags: release, [v2.8.0 ( 2 )](https://make.wordpress.org/cli/tag/v2-8-0/)

# 󠀁[WP-CLI v2.8.0 Release Notes](https://make.wordpress.org/cli/2023/05/31/wp-cli-v2-8-0-release-notes/)󠁿

After a bit of unexpected delay, a new release of WP-CLIWP-CLI WP-CLI is the Command
Line Interface for WordPress, used to do administrative and development tasks in
a programmatic way. The project page is [http://wp-cli.org/](http://wp-cli.org/)
[https://make.wordpress.org/cli/](https://make.wordpress.org/cli/) is available 
as of today: **WP-CLI v2.8.0**. For this release, we had **66 contributors** collaborate
to get **277 pull requests** merged. 

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible.

This is a small release with the main purpose of polishing PHPPHP PHP (recursive
acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose
scripting language that is especially suited for web development and can be embedded
into HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
8.1/8.2 support. Nevertheless, apart from the flurry of bugs that were fixed, we
also have a few new features that I’ll want to highlight. As always, you can also
skip directly to the [detailed changelog](https://make.wordpress.org/cli/tag/release/?output_format=md#changelog)
if you prefer.

### Bundled with Requests v2

The last component that needed updating for full PHP 8.1 was the bundled Requests
library. With the move to v2 of Requests, adding support for PHP 8.1 seems to be
complete, an.d PHP 8.2 is starting to look good as well.

Note that the way the dependencies interact between WP-CLI and WordPress CoreCore
Core is the set of software required to run WordPress. The Core Development Team
builds WordPress. (which has no proper dependency management that could help out
here) makes for a somewhat hacky solution at this time. We’re looking into something
more robust for a future release, but until then make sure you submit issues when
you encounter edge cases that the current approach does not yet take into account.

### Improve support for caching solutions

There is a new command `wp cache supports <feature>` to detect cache features like`
add_multiple`. Furthermore, we have a new command `wp cache flush-group` that allows
you to flush at the group level. Also, WP-CLI now produces warning when you use `
wp transient list` when an object cache is active. Finally, WP-CLI now recognizes
Object Cache Pro as a caching solution.

    ```wp-block-code
    $ wp cache supports add_multiple
    $ echo $?
    0

    $ wp cache flush-group my_group
    Success: Cache group 'my_group' was flushed.
    ```

### Fetch URLs of entities

For the posts, terms and comments, you can now retrieve their canonical URLURL A
specific web address of a website or web page on the Internet, such as a website’s
URL www.wordpress.org via the `--field=url` argument. As an example, you can retrieve
the URL of the post with ID 123 via the following command:

    ```wp-block-code
    $ wp post get 123 --field=url
    https://example.com/hello-world-the-sequel/
    ```

### Skip config changes on multisiteMultisite Multisite is a WordPress feature which allows users to create a network of sites on a single WordPress installation. Available since WordPress version 3.0, Multisite is a continuation of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued and its features were included into WordPress core. 󠀁[Advanced Administration Handbook -> Create A Network.](https://developer.wordpress.org/advanced-administration/multisite/create-network/)󠁿 conversion

In case you’re working on a read-only filesystem or are forced to push file changes
through VCS, you can now skip the automatic config file changes that `wp core multisite-
convert` does. All you need to do is add the `--skip-config` flag, and the command
will not only obey that choice, but also conveniently print the changes you need
to make to the config file manually. This behavior was already included with `wp
core multisite-install`, but now the conversion command knows this trick too.

    ```wp-block-code
    $ wp core multisite-convert --skip-config
    Set up multisite database tables.
    Addition of multisite constants to 'wp-config.php' skipped. You need to add them manually:
    define( 'WP_ALLOW_MULTISITE', true );
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', {$subdomain_export} );
    \$base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'example.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    Success: Network installed. Don't forget to set up rewrite rules (and a .htaccess file, if using Apache).
    ```

### Verify checksums for the root folder

The `wp core verify-checksums` now has a new `--include-root` flag that makes it
scan and verify the root folder as well (the one that `ABSPATH` points to).

    ```wp-block-code
    $ wp core verify-checksums --include-root
    Warning: File should not exist: dump.sql
    Warning: File should not exist: backdoor.php
    ```

### Configure autoloading behavior for options

Two new commands `wp option get-autoload` and `wp option set-autoload` have been
added to change the autoloading behavior for an existing option. This was not easily
possible with `wp option update` as that only allowed the autoloading to change 
when the value changed as well.

    ```wp-block-code
    $ wp option add foo bar
    Success: Added 'foo' option.
    $ wp option get-autoload foo
    yes
    $ wp option set-autoload foo no
    Success: Updated autoload value for 'foo' option.
    $ wp option set-autoload foo no
    Success: Autoload value passed for 'foo' option is unchanged.
    ```

### New flags for password reset

The command `wp user reset-password` now has two new flags. The first one is `--
show-password`, and it will immediately show the new password as it is being reset.
The second one is `--porcelain`, and it will show only the password and nothing 
else as output of the command. The latter one is useful for scripting purposes.

    ```wp-block-code
    $ wp user reset-password admin --skip-email --show-password
    Reset password for admin.
    Password: bt6Hy!9*P0A1
    Success: Password reset for 1 user.

    $ wp user reset-password admin --skip-email --porcelain
    yV6BP*!d70wg
    ```

### Include ad-hoc code instead of evaluating it

If you’re using the `wp eval-file` command, it will read the file you point it to
and run it through the PHP `eval` logic. This has a few drawbacks, though. One one
hand, directives like `declare(strict_types=1)` will throw errors. On the other,
it is not possible to use XDebug to debug such an evaluated piece of code.

To counter this, the `wp eval-file` command now has a new `--use-include` flag that
makes it `include` the file you’re pointing to, instead of running it through `eval`.
Note that this does not work with `STDIN` as input, so the `-` file argument can
not be used at the same time as the `--use-include` flag.

### Detailed change log

_To avoid too much noise in the list above, the following types of pull requests
have been omitted:_

 * _PRs that only bumped dependencies to their latest version._
 * _PRs that only fixed a typo in the documentation._
 * _PRs that add an `allow-plugins` rule to Composer_.
 * _PRs that add a Composer script_.

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle/)󠁿

 * Adapt tests for Requests [[#540](https://github.com/wp-cli/wp-cli-bundle/pull/540)]
 * Skip `update-framework.yml` workflow on forks [[#537](https://github.com/wp-cli/wp-cli-bundle/pull/537)]
 * Add a workflow to keep `wp-cli/wp-cli` up to date [[#507](https://github.com/wp-cli/wp-cli-bundle/pull/507)]
 * Move the new README into its proper location [[#478](https://github.com/wp-cli/wp-cli-bundle/pull/478)]
 * Add a new bundle-specific README [[#476](https://github.com/wp-cli/wp-cli-bundle/pull/476)]
 * Use Composer 2.2 LTS for PHP < 7.2 [[#472](https://github.com/wp-cli/wp-cli-bundle/pull/472)]
 * Detect if running Phar via CLICLI Command Line Interface. Terminal (Bash) in 
   Mac, Command Prompt in Windows, or WP-CLI for WordPress. SAPI [[#465](https://github.com/wp-cli/wp-cli-bundle/pull/465)]
 * Use `ramsey/composer-install` in `Deployment` workflow [[#463](https://github.com/wp-cli/wp-cli-bundle/pull/463)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli/)󠁿

 * Harden loading of upgrader [[#5791](https://github.com/wp-cli/wp-cli/pull/5791)]
 * Ignore Requests deprecations in error handling for now [[#5790](https://github.com/wp-cli/wp-cli/pull/5790)]
 * Fallback to hardcoded folder when `WPINC` not defined [[#5786](https://github.com/wp-cli/wp-cli/pull/5786)]
 * Add `RequestsLibrary::get_bundled_certificate_path()` method [[#5785](https://github.com/wp-cli/wp-cli/pull/5785)]
 * Conditionally adapt to Core Requests library [[#5783](https://github.com/wp-cli/wp-cli/pull/5783)]
 * Add bootstrap step to extract default CA certificate [[#5781](https://github.com/wp-cli/wp-cli/pull/5781)]
 * Revert “Extract cacert from Phar for cURL” [[#5780](https://github.com/wp-cli/wp-cli/pull/5780)]
 * Use `wp_cache_flush_runtime` if supported. [[#5778](https://github.com/wp-cli/wp-cli/pull/5778)]
 * Extract `cacert` from Phar for cURL [[#5777](https://github.com/wp-cli/wp-cli/pull/5777)]
 * Fix some PHP 8.2 depreciation notices in behat tests [[#5776](https://github.com/wp-cli/wp-cli/pull/5776)]
 * Use `rtrim` on phar-safe path to avoid double slash [[#5775](https://github.com/wp-cli/wp-cli/pull/5775)]
 * Upgrade WP-CLI to Requests v2 [[#5774](https://github.com/wp-cli/wp-cli/pull/5774)]
 * Added `wp cli alias is-group` subcommand. [[#5766](https://github.com/wp-cli/wp-cli/pull/5766)]
 * Update test to reflect warning when `--url=<url>` is provided [[#5763](https://github.com/wp-cli/wp-cli/pull/5763)]
 * Use `-R` instead of `-r` for fallback pager command [[#5759](https://github.com/wp-cli/wp-cli/pull/5759)]
 * Fix autocompletion notice with PHP 8.2 [[#5749](https://github.com/wp-cli/wp-cli/pull/5749)]
 * Fix PHP Deprecation for 8.1 [[#5743](https://github.com/wp-cli/wp-cli/pull/5743)]
 * Use `WP_CLI_FORCE_USER_LOGIN=1` to force `--user=<login>` [[#5738](https://github.com/wp-cli/wp-cli/pull/5738)]
 * Fix `--skip-themes` for themes with blockBlock Block is the abstract term used
   to describe units of markup that, composed together, form the content or layout
   of a webpage using the WordPress editor. The idea combines concepts of what in
   the past may have achieved with shortcodes, custom HTML, and embed discovery 
   into a single consistent API and user experience. patterns [[#5737](https://github.com/wp-cli/wp-cli/pull/5737)]
 * Make sure `subcommand` `@alias` definition respects `@when` definition [[#5730](https://github.com/wp-cli/wp-cli/pull/5730)]
 * Improve docs for `SHELL_PIPE` [[#5729](https://github.com/wp-cli/wp-cli/pull/5729)]
 * Use `awk` instead of `sed` to create BOM in feature test [[#5728](https://github.com/wp-cli/wp-cli/pull/5728)]
 * Add `runtime_args` to options array for `runcommand` [[#5722](https://github.com/wp-cli/wp-cli/pull/5722)]
 * Fix deprecation notice triggered in `WpOrgApi` class in PHP 8.1 [[#5717](https://github.com/wp-cli/wp-cli/pull/5717)]
 * Fix return type of `make_progress`_bar [[#5715](https://github.com/wp-cli/wp-cli/pull/5715)]
 * Add name context to `before_invoke` and `after_invoke` [[#5712](https://github.com/wp-cli/wp-cli/pull/5712)]
 * Check that `proc_open()` is available in `Process::run()` [[#5711](https://github.com/wp-cli/wp-cli/pull/5711)]
 * Improve support for cases with empty `--path` provided to commands [[#5709](https://github.com/wp-cli/wp-cli/pull/5709)]
 * Fix `composer test` after branch rename [[#5708](https://github.com/wp-cli/wp-cli/pull/5708)]
 * PHP 8.2: explicitly declare `CompositeCommand::$longdesc` to fix deprecation 
   warning [[#5707](https://github.com/wp-cli/wp-cli/pull/5707)]
 * Detect Object Cache Pro [[#5698](https://github.com/wp-cli/wp-cli/pull/5698)]
 * Ensure `WP_CLI_ROOT` is defined before accessing it [[#5697](https://github.com/wp-cli/wp-cli/pull/5697)]
 * Fix `proc_open_compat` util on Windows [[#5689](https://github.com/wp-cli/wp-cli/pull/5689)]
 * Move `WP_CLI_CONFIG_SPEC_FILTER_CALLBACK` test to `flags.feature` [[#5687](https://github.com/wp-cli/wp-cli/pull/5687)]

#### 󠀁[wp-cli/handbook](https://github.com/wp-cli/handbook/)󠁿

 * Replacement added for the `&&` [[#444](https://github.com/wp-cli/handbook/pull/444)]
 * Add HostRiver to list of hosting companies [[#442](https://github.com/wp-cli/handbook/pull/442)]
 * Add DataPerk to list of hosting companies [[#441](https://github.com/wp-cli/handbook/pull/441)]
 * Include a couple more helpful Behat calls [[#440](https://github.com/wp-cli/handbook/pull/440)]
 * Add maintainer expectations to the Governance page [[#439](https://github.com/wp-cli/handbook/pull/439)]
 * Fill out page for `wp profile` [[#437](https://github.com/wp-cli/handbook/pull/437)]
 * Link to ‘Shell Friends’ from the Philosophy doc [[#435](https://github.com/wp-cli/handbook/pull/435)]
 * Add example for how to discard headerHeader The header of your site is typically
   the first thing people will experience. The masthead or header art located across
   the top of your page is part of the look and feel of your website. It can influence
   a visitor’s opinion about your content and you/ your organization’s brand. It
   may also look different on different screen sizes. row from CSV [[#434](https://github.com/wp-cli/handbook/pull/434)]
 * Uppercase for ‘Committers Credo’ title [[#433](https://github.com/wp-cli/handbook/pull/433)]
 * Update `hosting-companies.md` [[#432](https://github.com/wp-cli/handbook/pull/432)]
 * Move the Doctor docs under ‘Guides’ [[#431](https://github.com/wp-cli/handbook/pull/431)]
 * Add secondary `wp doctor` content and a landing page [[#430](https://github.com/wp-cli/handbook/pull/430)]
 * Add two primary `wp doctor` docs to the handbook [[#429](https://github.com/wp-cli/handbook/pull/429)]
 * Fix phar download url [[#428](https://github.com/wp-cli/handbook/pull/428)]
 * Adding new pluginPlugin A plugin is a piece of software containing a group of
   functions that can be added to a WordPress website. They can extend functionality
   or add new features to your WordPress websites. WordPress plugins are written
   in the PHP programming language and integrate seamlessly with WordPress. These
   can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
   or can be cost-based plugin from a third-party. to handbook [[#427](https://github.com/wp-cli/handbook/pull/427)]
 * Corrected local jumplinks [[#426](https://github.com/wp-cli/handbook/pull/426)]
 * Running commands remotely: On restrictive webhost [[#425](https://github.com/wp-cli/handbook/pull/425)]
 * Remove BackupBuddy [[#423](https://github.com/wp-cli/handbook/pull/423)]
 * Remove non existing tool [[#421](https://github.com/wp-cli/handbook/pull/421)]

#### 󠀁[wp-cli/wp-cli.github.com](https://github.com/wp-cli/wp-cli.github.com/)󠁿

 * Update `index.md` [[#428](https://github.com/wp-cli/wp-cli.github.com/pull/428)]
 * Add “WP-CLI” heading [[#427](https://github.com/wp-cli/wp-cli.github.com/pull/427)]
 * Update German readme [[#426](https://github.com/wp-cli/wp-cli.github.com/pull/426)]
 * Update `ja/index.md` [[#424](https://github.com/wp-cli/wp-cli.github.com/pull/424)]
 * Current stable release is 2.6.0 [[#423](https://github.com/wp-cli/wp-cli.github.com/pull/423)]

#### 󠀁[wp-cli/cache-command](https://github.com/wp-cli/cache-command/)󠁿

 * Warn when `wp transient list` is used with external object cache [[#82](https://github.com/wp-cli/cache-command/pull/82)]
 * Give a warning when flushing cache on multisite with `--url=<url>` [[#86](https://github.com/wp-cli/cache-command/pull/86)]
 * Add `wp cache flush-group` for flushing a cache group [[#85](https://github.com/wp-cli/cache-command/pull/85)]
 * Add `wp cache supports <feature>` command [[#84](https://github.com/wp-cli/cache-command/pull/84)]

#### 󠀁[wp-cli/checksum-command](https://github.com/wp-cli/checksum-command/)󠁿

 * Fix failing checksum tests due to timeout on `WP_VERSION=trunk` [[#99](https://github.com/wp-cli/checksum-command/pull/99)]
 * Pass `false` instead of `null` to fix PHP 8.1 warning [[#103](https://github.com/wp-cli/checksum-command/pull/103)]
 * Add `--include-root` parameter to also verify root directory [[#102](https://github.com/wp-cli/checksum-command/pull/102)]
 * Verify a specific plugin version [[#108](https://github.com/wp-cli/checksum-command/pull/108)]
 * Log warning if `WpOrgApi::get_plugin_checksums()` fails [[#105](https://github.com/wp-cli/checksum-command/pull/105)]

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Fix failing tests by switching to WordPress 4.1 as minor update test [[#223](https://github.com/wp-cli/core-command/pull/223)]
 * Fix failing test by setting `WP_AUTO_UPDATE_CORE=false` [[#222](https://github.com/wp-cli/core-command/pull/222)]
 * Fix deprecation notices in PHP 8.1 [[#220](https://github.com/wp-cli/core-command/pull/220)]
 * Resolve tests failures from WordPress 6.2 [[#229](https://github.com/wp-cli/core-command/pull/229)]
 * Leave `wp-content/plugins` and `wp-content/themes` directories when using `--
   skip-content` [[#230](https://github.com/wp-cli/core-command/pull/230)]
 * Check more files to determine if WordPress is present or not [[#233](https://github.com/wp-cli/core-command/pull/233)]
 * Add a `--skip-config` flag to `wp core multisite-convert` [[#231](https://github.com/wp-cli/core-command/pull/231)]
 * Fix tests for Requests v2 support [[#235](https://github.com/wp-cli/core-command/pull/235)]

#### 󠀁[wp-cli/cron-command](https://github.com/wp-cli/cron-command/)󠁿

 * Use `wp_get_ready_cron_jobs()` for `--due-now` to apply core filterFilter Filters
   are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. [[#89](https://github.com/wp-cli/cron-command/pull/89)]
 * Warn instead of fatal when invalid cron event is detected [[#93](https://github.com/wp-cli/cron-command/pull/93)]
 * Add `--exclude=<hooks>` argument to `wp cron event run` [[#97](https://github.com/wp-cli/cron-command/pull/97)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Fix retrieval of `get_post_table_characterset` [[#231](https://github.com/wp-cli/db-command/pull/231)]

#### 󠀁[wp-cli/entity-command](https://github.com/wp-cli/entity-command/)󠁿

 * Add example for deleting multiple post IDs [[#387](https://github.com/wp-cli/entity-command/pull/387)]
 * Add `--field=url` support for posts, comments, and terms [[#383](https://github.com/wp-cli/entity-command/pull/383)]
 * Add `wp option get-autoload` and `wp option set-autoload` [[#382](https://github.com/wp-cli/entity-command/pull/382)]
 * Replace empty namespace autoloader with classmap [[#390](https://github.com/wp-cli/entity-command/pull/390)]
 * Do not mark main site as spam when using `wp user spam` [[#393](https://github.com/wp-cli/entity-command/pull/393)]
 * Clarify `url` field in `wp site list` docs [[#401](https://github.com/wp-cli/entity-command/pull/401)]
 * Change new passwords to 24 characters in a few places [[#399](https://github.com/wp-cli/entity-command/pull/399)]
 * Add examples and update the documentation to the `wp post term` [[#398](https://github.com/wp-cli/entity-command/pull/398)]
 * Add `--show-password` flag to `user reset-password` [[#394](https://github.com/wp-cli/entity-command/pull/394)]
 * Warn when an invalid role is provided for `wp user update` [[#406](https://github.com/wp-cli/entity-command/pull/406)]

#### 󠀁[wp-cli/eval-command](https://github.com/wp-cli/eval-command/)󠁿

 * Add `--use-include` flag [[#64](https://github.com/wp-cli/eval-command/pull/64)]

#### 󠀁[wp-cli/export-command](https://github.com/wp-cli/export-command/)󠁿

 * Update `post__in` documentation to mention space-separated [[#104](https://github.com/wp-cli/export-command/pull/104)]
 * Update tests using WordPress Importer to require WordPress 5.2 [[#102](https://github.com/wp-cli/export-command/pull/102)]
 * Add `--include_once=<section>` parameter for `before_posts` data in multi-file
   exports [[#100](https://github.com/wp-cli/export-command/pull/100)]
 * Exclude unnecessary author IDs from `oembed_cache` posts in export [[#99](https://github.com/wp-cli/export-command/pull/99)]

#### 󠀁[wp-cli/extension-command](https://github.com/wp-cli/extension-command/)󠁿

 * Fix failing tests [[#347](https://github.com/wp-cli/extension-command/pull/347)]
 * Fix failing PHP 5.6 tests by requiring WP 5.2 [[#342](https://github.com/wp-cli/extension-command/pull/342)]
 * Delete plugin translation files when plugin is uninstalled [[#339](https://github.com/wp-cli/extension-command/pull/339)]
 * Don’t report an error when 5 out of 5 plugins were updated [[#338](https://github.com/wp-cli/extension-command/pull/338)]
 * Remove extra space [[#335](https://github.com/wp-cli/extension-command/pull/335)]
 * Add format option to `wp plugin|theme auto-updates status` [[#351](https://github.com/wp-cli/extension-command/pull/351)]
 * Include optional `'auto_updates'` field in plugin and theme lists [[#350](https://github.com/wp-cli/extension-command/pull/350)]
 * Avoid deleting theme if the specified version cannot be found [[#349](https://github.com/wp-cli/extension-command/pull/349)]
 * Ensure a stable version is used when `--minor` or `--patch` specified [[#355](https://github.com/wp-cli/extension-command/pull/355)]
 * Fix fatal error in invalid plugin update offer [[#354](https://github.com/wp-cli/extension-command/pull/354)]
 * Fix PHP 8.2 ‘Creation of dynamic property’ warning [[#360](https://github.com/wp-cli/extension-command/pull/360)]

#### 󠀁[wp-cli/i18n-command](https://github.com/wp-cli/i18n-command/)󠁿

 * PHP 8.2: fix `${var}` string interpolation deprecation warning [#346]
 * Add more standard ‘excludes’ values [[#351](https://github.com/wp-cli/i18n-command/pull/351)]
 * Fix unclosed quote [[#350](https://github.com/wp-cli/i18n-command/pull/350)]
 * CI: Ensure PHPUnit workflow actually runs [[#360](https://github.com/wp-cli/i18n-command/pull/360)]
 * Fix deprecated partially-supported callables for PHP 8.2 [[#359](https://github.com/wp-cli/i18n-command/pull/359)]
 * `update-po`: Check for destination [[#356](https://github.com/wp-cli/i18n-command/pull/356)]

#### 󠀁[wp-cli/import-command](https://github.com/wp-cli/import-command/)󠁿

 * Fix failing tests with `@require-wp-5.2` [[#79](https://github.com/wp-cli/import-command/pull/79)]
 * Document use of the `IMPORT_DEBUG` constant [[#82](https://github.com/wp-cli/import-command/pull/82)]

#### 󠀁[wp-cli/language-command](https://github.com/wp-cli/language-command/)󠁿

 * Switch to `twentytwentyone` to fix failing tests [[#118](https://github.com/wp-cli/language-command/pull/118)]

#### 󠀁[wp-cli/media-command](https://github.com/wp-cli/media-command/)󠁿

 * Fx typo in `import` command `longdesc` [[#172](https://github.com/wp-cli/media-command/pull/172)]
 * Travis is no longer in use, so fine to remove config files [[#171](https://github.com/wp-cli/media-command/pull/171)]
 * Avoid deleting metaMeta Meta is a term that refers to the inside workings of 
   a group. For us, this is the team that works on internal WordPress sites like
   WordCamp Central and Make WordPress. for other sizes when running `wp media regenerate`
   with `--image_size` [[#170](https://github.com/wp-cli/media-command/pull/170)]
 * Support `--post_name=` when importing media [[#166](https://github.com/wp-cli/media-command/pull/166)]
 * Correct argument for `fix-orientation` subcommand [[#165](https://github.com/wp-cli/media-command/pull/165)]
 * Remove tests around square image thumbnail regeneration [[#177](https://github.com/wp-cli/media-command/pull/177)]

#### 󠀁[wp-cli/package-command](https://github.com/wp-cli/package-command/)󠁿

 * Fix failing `package-command` tests [[#164](https://github.com/wp-cli/package-command/pull/164)]
 * Mark the test with `yoast/wp-cli-faker` as `@broken` [[#170](https://github.com/wp-cli/package-command/pull/170)]
 * Adapt bundled certificate access [[#174](https://github.com/wp-cli/package-command/pull/174)]

#### 󠀁[wp-cli/php-cli-tools](https://github.com/wp-cli/php-cli-tools/)󠁿

 * Add annotations to remove deprecated warning message on PHP 8.1[[#152](https://github.com/wp-cli/php-cli-tools/pull/152)]
 * Restore PHPUnit test runs [[#155](https://github.com/wp-cli/php-cli-tools/pull/155)]
 * Fix PHP Deprecated: Creation of dynamic property [[#158](https://github.com/wp-cli/php-cli-tools/pull/158)]

#### 󠀁[wp-cli/rewrite-command](https://github.com/wp-cli/rewrite-command/)󠁿

 * Support full URLs for `wp rewrite list --match=<url>` [[#59](https://github.com/wp-cli/rewrite-command/pull/59)]

#### 󠀁[wp-cli/role-command](https://github.com/wp-cli/role-command/)󠁿

 * Add explanation of what happens for `wp role reset` [[#58](https://github.com/wp-cli/role-command/pull/58)]
 * Fix fatal error when resetting an already deleted role [[#57](https://github.com/wp-cli/role-command/pull/57)]
 * Fix support for `--grant=false` argument [[#59](https://github.com/wp-cli/role-command/pull/59)]

#### 󠀁[wp-cli/scaffold-command](https://github.com/wp-cli/scaffold-command/)󠁿

 * Update the GitHubGitHub GitHub is a website that offers online implementation
   of git repositories that can easily be shared, copied and modified by other developers.
   Public repositories are free to host, private repositories require a paid subscription.
   GitHub introduced the concept of the ‘pull request’ where code changes done in
   branches by contributors can be reviewed and discussed before being merged by
   the repository owner. [https://github.com/](https://github.com/) URL for `db.
   php` [[#317](https://github.com/wp-cli/scaffold-command/pull/317)]
 * Add `phpcompatibility-wp` coding standards to Gitlab template [[#315](https://github.com/wp-cli/scaffold-command/pull/315)]
 * Use platform-agnostic `mysql-client` packages in Gitlab CI [[#314](https://github.com/wp-cli/scaffold-command/pull/314)]
 * Added `vendor` to the generated `.gitignore` which the scaffold creates [[#279](https://github.com/wp-cli/scaffold-command/pull/279)]

#### 󠀁[wp-cli/search-replace-command](https://github.com/wp-cli/search-replace-command/)󠁿

 * Make `is_text_col`‘s search case-insensitive for `sqlite` support [[#177](https://github.com/wp-cli/search-replace-command/pull/177)]
 * Fix regex invalid delimiter test for PHP 8.2 [[#181](https://github.com/wp-cli/search-replace-command/pull/181)]
 * Address long-running queries and OOM contributor in PHP replacement [[#180](https://github.com/wp-cli/search-replace-command/pull/180)]

#### 󠀁[wp-cli/wp-config-transformer](https://github.com/wp-cli/wp-config-transformer/)󠁿

 * Update status badge in `README.md` [[#40](https://github.com/wp-cli/wp-config-transformer/pull/40)]
 * Avoid test failure with `assertNotSame` instead of `assertNotEquals` [[#41](https://github.com/wp-cli/wp-config-transformer/pull/41)]
 * Fix incorrect return type in docblock for `get_value()` [[#43](https://github.com/wp-cli/wp-config-transformer/pull/43)]

### Contributors

[@aerogus](https://github.com/aerogus), [@agrullon95](https://github.com/agrullon95),
[@akirk](https://github.com/akirk), [@benjaminprojas](https://github.com/benjaminprojas),
[@BhargavBhandari90](https://github.com/BhargavBhandari90), [@brandonpayton](https://github.com/brandonpayton),
[@bukowa](https://github.com/bukowa), [@cliffordp](https://github.com/cliffordp),
[@connerbw](https://github.com/connerbw), [@danielbachhuber](https://github.com/danielbachhuber),
[@dd32](https://github.com/dd32), [@dlind1](https://github.com/dlind1), [@drzraf](https://github.com/drzraf),
[@dsXLII](https://github.com/dsXLII), [@elenachavdarova](https://github.com/elenachavdarova),
[@endriu84](https://github.com/endriu84), [@gagan0123](https://github.com/gagan0123),
[@gedex](https://github.com/gedex), [@gitlost](https://github.com/gitlost), [@greatislander](https://github.com/greatislander),
[@hbhalodia](https://github.com/hbhalodia), [@herregroen](https://github.com/herregroen),
[@janw-me](https://github.com/janw-me), [@jenkoian](https://github.com/jenkoian),
[@joeldcanfield](https://github.com/joeldcanfield), [@josedumas](https://github.com/josedumas),
[@jrfnl](https://github.com/jrfnl), [@kozer](https://github.com/kozer), [@l3ku](https://github.com/l3ku),
[@lipemat](https://github.com/lipemat), [@localheinz](https://github.com/localheinz),
[@matzeeable](https://github.com/matzeeable), [@michaelzangl](https://github.com/michaelzangl),
[@mpkelly](https://github.com/mpkelly), [@mrsdizzie](https://github.com/mrsdizzie),
[@mweimerskirch](https://github.com/mweimerskirch), [@oandregal](https://github.com/oandregal),
[@ocean90](https://github.com/ocean90), [@ouikhuan](https://github.com/ouikhuan),
[@paulschreiber](https://github.com/paulschreiber), [@pbiron](https://github.com/pbiron),
[@pdaalder](https://github.com/pdaalder), [@pmbaldha](https://github.com/pmbaldha),
[@ponsfrilus](https://github.com/ponsfrilus), [@pwtyler](https://github.com/pwtyler),
[@r-a-y](https://github.com/r-a-y), [@Rahmon](https://github.com/Rahmon), [@rodrigoprimo](https://github.com/rodrigoprimo),
[@rutviksavsani](https://github.com/rutviksavsani), [@Saggre](https://github.com/Saggre),
[@schlessera](https://github.com/schlessera), [@semseysandor](https://github.com/semseysandor),
[@SH4LIN](https://github.com/SH4LIN), [@shendy-a8c](https://github.com/shendy-a8c),
[@siliconforks](https://github.com/siliconforks), [@srtfisher](https://github.com/srtfisher),
[@SteenSchutt](https://github.com/SteenSchutt), [@strarsis](https://github.com/strarsis),
[@stuartlangridge](https://github.com/stuartlangridge), [@swissspidy](https://github.com/swissspidy),
[@tecking](https://github.com/tecking), [@Tug](https://github.com/Tug), [@tyrann0us](https://github.com/tyrann0us),
[@wojsmol](https://github.com/wojsmol), [@wojtekn](https://github.com/wojtekn), 
[@yousan](https://github.com/yousan)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-8-0](https://make.wordpress.org/cli/tag/v2-8-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2023%2F05%2F31%2Fwp-cli-v2-8-0-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
8:27 pm _on_ April 5, 2023     
Tags: release, [v2.8.0 ( 2 )](https://make.wordpress.org/cli/tag/v2-8-0/)

# 󠀁[WP-CLI v2.8.0 release date](https://make.wordpress.org/cli/2023/04/05/wp-cli-v2-8-0-release-date/)󠁿

The v2.8.0 release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/)
is scheduled to be published on Wednesday, May 3rd 2023.

Amongst others a multitude of bug fixes and some new features, we’re also expecting
this release to fix all known PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor)
is a widely-used open source general-purpose scripting language that is especially
suited for web development and can be embedded into HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
8.2 issues within WP-CLI itself.

The release candidateRelease Candidate A beta version of software with the potential
to be a final product, which is ready to release unless significant bugs emerge.
for this release will already be available sometime during the week prior, to allow
for early testing. We will announce the availability of that release candidate in
the[ #hosting-community](https://wordpress.slack.com/archives/C3D6T7F8Q) channel
to allow hosters to do early smoke testing.

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-8-0](https://make.wordpress.org/cli/tag/v2-8-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2023%2F04%2F05%2Fwp-cli-v2-8-0-release-date%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
12:07 am _on_ October 18, 2022     
Tags: release, v2.7.1   

# 󠀁[WP-CLI v2.7.1 Release Notes](https://make.wordpress.org/cli/2022/10/18/wp-cli-v2-7-1-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/)
is available as of today: **WP-CLI v2.7.1**. For this release, we had **4 contributors**
collaborate to get **12 pull requests** merged. 

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible. 

This is a patch release to fix a few regressions that were introduced with release
v2.7.0.

### Detailed change log

_To avoid too much noise in the list above, the following types of pull requests
have been omitted:_

 * _PRs that only bumped dependencies to their latest version._
 * _PRs that only fixed a typo in the documentation._
 * _PRs that add an `allow-plugins` rule to Composer_

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Avoid deleting TinyMCE themes/plugins by using more precise check [[#215](https://github.com/wp-cli/core-command/pull/215)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Fix PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-
   used open source general-purpose scripting language that is especially suited
   for web development and can be embedded into HTML. [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
   8.1 fatal error with `--orderby=size` and `--size_format=mb` [[#230](https://github.com/wp-cli/db-command/pull/230)]

#### 󠀁[wp-cli/extension-command](https://github.com/wp-cli/extension-command/)󠁿

 * Avoid throwing error when excluding missing pluginPlugin A plugin is a piece 
   of software containing a group of functions that can be added to a WordPress 
   website. They can extend functionality or add new features to your WordPress 
   websites. WordPress plugins are written in the PHP programming language and integrate
   seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory
   [https://wordpress.org/plugins/](https://wordpress.org/plugins/) or can be cost-
   based plugin from a third-party. [[#332](https://github.com/wp-cli/extension-command/pull/332)]

#### 󠀁[wp-cli/search-replace-command](https://github.com/wp-cli/search-replace-command/)󠁿

 * Use empty string default value for flags to safeguard the use of `explode()` [
   [#169](https://github.com/wp-cli/search-replace-command/pull/169)]

### Contributors

[@cjhaas](https://github.com/cjhaas), [@danielbachhuber](https://github.com/danielbachhuber),
[@schlessera](https://github.com/schlessera), [@wojsmol](https://github.com/wojsmol)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-7-1](https://make.wordpress.org/cli/tag/v2-7-1/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2022%2F10%2F18%2Fwp-cli-v2-7-1-release-notes%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
6:34 am _on_ October 11, 2022     
Tags: release, v2.7.0   

# 󠀁[WP-CLI v2.7.0 Release Notes](https://make.wordpress.org/cli/2022/10/11/wp-cli-v2-7-0-release-notes/)󠁿

A new release of WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,
used to do administrative and development tasks in a programmatic way. The project
page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/cli/)
is available as of today: **WP-CLI v2.7.0**. For this release, we had **48 contributors**
collaborate to get **195 pull requests** merged. 🎉

As always, big thanks to the [WP-CLI sponsors](https://make.wordpress.org/cli/sponsors/)
that make the continued maintenance possible. ❤️

This is a small release with the main purpose of getting some much needed bug fixes
into a stable version. Nevertheless, we also have a few new features that I’ll want
to highlight. As always, you can also skip directly to the [detailed changelog](https://make.wordpress.org/cli/tag/release/?output_format=md#changelog)
if you prefer.

### Support for docker-compose run

The `--ssh` flag and `ssh` configuration key (and along with them the remote execution
aliases) have learned a new scheme: `docker-compose-run`:.

The `docker:` and `docker-compose:` schemes for the `ssh` option are useful, but
they only work when the target container is already running and therefore supports
running a shell command via `docker[-compose] exec`.

Some environments, for example [the wordpress-develop local development environment](https://github.com/WordPress/wordpress-develop/blob/62040b8b9d03b7dec7fbd66c2b415504b0f5ef47/docker-compose.yml#L80),
run WP-CLI via a container that only starts when needed and therefore requires the
use of `run` instead of `exec`.

With the support of the new `docker-compose-run` scheme in place you could put the
following config into the root of any project that uses `wordpressdevelop/cli` and
then simply use `wp <cmd>` instead of `npm run env:cli -- <cmd>` or `docker-compose
run cli -- <cmd>`.

    ```wp-block-code
    # wp-cli.yml
    ssh: docker-compose-run:cli
    ```

### Customizable global parameters

It was not previously possible to extend the list of parameters without modifying
the WP-CLI source files. While we are still considering different options for making
the global parameters extensibleExtensible This is the ability to add additional
functionality to the code. Plugins extend the WordPress core software. via a clean
APIAPI An API or Application Programming Interface is a software intermediary that
allows programs to interact with each other and share data in limited, clearly defined
ways., we already needed a short-term solution for a specific use case.

Because of this, we now introduced a set of small changes that allow the global 
parameters to be adapted on a “platform level”. This means that, for now, you can
change the global parameters, but only if you control the environment in which WP-
CLI is being executed in. This functionality works through the combination of the
following changes:

 * A new constant `WP_CLI_CONFIG_SPEC_FILTER_CALLBACK` is being checked to filterFilter
   Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. the array that the `config-spec.php` file has provided.
 * A new environment variable `WP_CLI_EARLY_REQUIRE` is checked to allow for the
   environment to provide extra PHPPHP PHP (recursive acronym for PHP: Hypertext
   Preprocessor) is a widely-used open source general-purpose scripting language
   that is especially suited for web development and can be embedded into HTML. 
   [https://www.php.net/manual/en/preface.php](https://www.php.net/manual/en/preface.php)
   bootstrapping logic.

You can use both of these to let the `WP_CLI_EARLY_REQUIRE` load a PHP file that
defines a new filter callback and then sets the `WP_CLI_CONFIG_SPEC_FILTER_CALLBACK`
to point to that filter.

This test snippet shows an example of how these two mechanisms can be used in tandem:

![](https://i0.wp.com/make.wordpress.org/cli/files/2022/10/config.feature-wp-cli-
WSL_-Ubuntu-20-2022-10-11-at-9.13.28-PM.04-Visual-Studio-Code.jpeg?resize=776%2C393&
ssl=1)

### Download WordPress CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. files without extracting them

Previously, you could already use the `core download` command not only to retrieve
the set of files from the WordPress central servers. But we did not have a way to
solely download a ZIP archive of WordPress Core instead.

Now you can do so via the `--extract` flag. This is on by default to keep with the
current behavior, but you can now switch extraction off by adding the `--no-extract`
flag.

Why would you do that, if it is a single file download you could also trigger via`
wget` or `curl`? Well, for one, it uses the HTTPHTTP HTTP is an acronym for Hyper
Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web
and this protocol defines how messages are formatted and transmitted, and what actions
Web servers and browsers should take in response to various commands. stack of WordPress/
WP-CLI to do the download. And what’s more, it allows you to use the smart WP-CLI
flags like `--version` to automatically retrieve the file from the right URLURL 
A specific web address of a website or web page on the Internet, such as a website’s
URL www.wordpress.org.

### Directly install a specific locale

Previously, when you wanted to install a locale of WordPress Core other than the
default `en_US`, you had to first run a `wp core install`, and then switch the locale
in a second step.

Now, WP-CLI allows you to select a specific locale right away via `core install`‘
s new `--locale` flag.

Ordering of the `db size` results

To quickly see what the biggest tables in your installation are, you can now make
use of the new `--order` and `--orderby` flags. The most useful example would be
to use `--orderby=size --order=desc` to get the largest tables first.

### Clean duplicate metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. values

Due to limitations of the WordPress database schema, the WordPress importer can 
end up inadvertently creating duplicate post meta entries if the import is run multiple
times.

WP-CLI has now learned a new command to remove duplicate post meta values for a 
given meta key.

    ```wp-block-code
    # Delete duplicate post meta.
    wp post meta clean-duplicates 1234 enclosure
    Success: Cleaned up duplicate 'enclosure' meta values.
    ```

Exclude select plugins on certain pluginPlugin A plugin is a piece of software containing
a group of functions that can be added to a WordPress website. They can extend functionality
or add new features to your WordPress websites. WordPress plugins are written in
the PHP programming language and integrate seamlessly with WordPress. These can 
be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. commands

The plugin commands `activate`, `deactivate`, `delete` and `uninstall` now accept
an additional `--exclude` flag if you use their `--all` flag.

The `--exclude` accepts a comma-separated list of plugin slugs, and allows you to
do operations in the vein of “deactivate all plugins except for these few ones”.

    ```wp-block-code
    # Deactivate all plugins with exclusion
    $ wp plugin deactivate --all --exclude=hello,wordpress-seo
    Plugin 'contact-form-7' deactivated.
    Plugin 'ninja-forms' deactivated.
    Success: Deactivated 2 of 2 plugins.
    ```

### Multiple changes to the i18n support

In our ongoing effort to further internationalization support within GutenbergGutenberg
The Gutenberg project is the new Editor Interface for WordPress. The editor improves
the process and experience of creating new content, making writing rich content 
much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML
etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/), we have
made yet another around of `i18n` changes and additions.

Most of the changes deal with changes to `block.json` and `theme.json`, in order
to support all the latest fields and mechanisms.

Also, there is now a new `update-po` command. Up until now, if you added a new translation
to one of your plugins, you could update the `messages.pot` file with `make-pot`,
but you’d have to update existing `po` files with the new translation by hand. With
the new `i18n update-po` (which is a WP-CLI alternative to `msgmerge`), you get 
around this without requiring manual edits.

And finally, `i18n` now supports PHP Blade templates as an additional input format
to parse for translations.

### Detailed change log

To avoid too much noise in the list above, the following types of pull requests 
have been omitted:

 * PRs that only bumped dependencies to their latest version.
 * PRs that only fixed a typo in the documentation.
 * PRs that add an `allow-plugins` rule to Composer

#### 󠀁[wp-cli/wp-cli-bundle](https://github.com/wp-cli/wp-cli-bundle/)󠁿

 * Add `eftect/bladeone` to PHAR for `i18n-command` [[#417](https://github.com/wp-cli/wp-cli-bundle/pull/417)]

#### 󠀁[wp-cli/wp-cli](https://github.com/wp-cli/wp-cli/)󠁿

 * Add support for `docker-compose run` to the `--ssh` option [[#5637](https://github.com/wp-cli/wp-cli/pull/5637)]
 * Internalize `global_terms_enabled()` [[#5684](https://github.com/wp-cli/wp-cli/pull/5684)]
 * Add cache directory path to `cli info` output [[#5681](https://github.com/wp-cli/wp-cli/pull/5681)]
 * Always return `PHP_BINARY` when using a PHAR bundle [[#5672](https://github.com/wp-cli/wp-cli/pull/5672)]
 * Load `config-spec.php` in a “filterable” way [[#5664](https://github.com/wp-cli/wp-cli/pull/5664)]
 * Use different action for admin context logic [[#5663](https://github.com/wp-cli/wp-cli/pull/5663)]
 * Require `v3.1.6` of `wp-cli/wp-cli-tests` [[#5659](https://github.com/wp-cli/wp-cli/pull/5659)]
 * Address some PHP 8.1 deprecation notices [[#5658](https://github.com/wp-cli/wp-cli/pull/5658)]
 * Document return type for `WP_CLI::halt()` as `never` [[#5651](https://github.com/wp-cli/wp-cli/pull/5651)]
 * Fix skip theme tests [[#5646](https://github.com/wp-cli/wp-cli/pull/5646)]
 * Add missing `$upgrade` argument to `enable_maintenance_mode` filter [[#5630](https://github.com/wp-cli/wp-cli/pull/5630)]
 * Handle optional option values in `SynopsisParser::render()` [[#5618](https://github.com/wp-cli/wp-cli/pull/5618)]
 * Add missing relative namespace [[#5616](https://github.com/wp-cli/wp-cli/pull/5616)]

#### 󠀁[wp-cli/handbook](https://github.com/wp-cli/handbook/)󠁿

 * Add additional instructions to override the DB test credentials. [[#410](https://github.com/wp-cli/handbook/pull/410)]

#### 󠀁[wp-cli/cache-command](https://github.com/wp-cli/cache-command/)󠁿

 * Make transients deletion test more robust [[#74](https://github.com/wp-cli/cache-command/pull/74)]

#### 󠀁[wp-cli/config-command](https://github.com/wp-cli/config-command/)󠁿

 * Prevent `WP_DEBUG` already defined when provided via `--extra-php` [[#144](https://github.com/wp-cli/config-command/pull/144)]

#### 󠀁[wp-cli/core-command](https://github.com/wp-cli/core-command/)󠁿

 * Add `--extract` flag to `core download` [[#204](https://github.com/wp-cli/core-command/pull/204)]
 * Update the link in the docblock of `core multisite-convert` command [[#201](https://github.com/wp-cli/core-command/pull/201)]
 * Add `--locale` parameter [[#133](https://github.com/wp-cli/core-command/pull/133)]
 * Remove only themes/plugins folders on `--skip-content` [[#212](https://github.com/wp-cli/core-command/pull/212)]

#### 󠀁[wp-cli/db-command](https://github.com/wp-cli/db-command/)󠁿

 * Fix broken tests due to DB connection failure error message change [[#224](https://github.com/wp-cli/db-command/pull/224)]
 * Stop reordering most MySQLMySQL MySQL is a relational database management system.
   A database is a structured collection of data where content, configuration and
   other options are stored. [https://www.mysql.com](https://www.mysql.com/) arguments[
   [#221](https://github.com/wp-cli/db-command/pull/221)]
 * Add support for `--order`, `--orderby` flags in `db size` command [[#226](https://github.com/wp-cli/db-command/pull/226)]

#### 󠀁[wp-cli/entity-command](https://github.com/wp-cli/entity-command/)󠁿

 * Use `https` in `post generate` example [[#355](https://github.com/wp-cli/entity-command/pull/355)]
 * Support filtering for users without a role with `--role=none` [[#360](https://github.com/wp-cli/entity-command/pull/360)]
 * Sync user-contributed example to `user delete` [[#358](https://github.com/wp-cli/entity-command/pull/358)]
 * Fix JSONJSON JSON, or JavaScript Object Notation, is a minimal, readable format
   for structuring data. It is used primarily to transmit data between a server 
   and web application, as an alternative to XML. formatting in feature file [[#368](https://github.com/wp-cli/entity-command/pull/368)]
 * Add `post meta clean-duplicates <id> <key>` command [[#366](https://github.com/wp-cli/entity-command/pull/366)]
 * Document `primary_blog` meta key for users [[#365](https://github.com/wp-cli/entity-command/pull/365)]
 * Allow `user_url` to be set with `user create` [[#372](https://github.com/wp-cli/entity-command/pull/372)]
 * Show error when parameter is missing in `option patch` [[#371](https://github.com/wp-cli/entity-command/pull/371)]
 * Use `current_time()` for setting the default value for `user_registered` in `
   user create` [[#378](https://github.com/wp-cli/entity-command/pull/378)]
 * Add examples for `option patch` command [[#375](https://github.com/wp-cli/entity-command/pull/375)]

#### 󠀁[wp-cli/export-command](https://github.com/wp-cli/export-command/)󠁿

 * Fix test for attachment serialization [[#96](https://github.com/wp-cli/export-command/pull/96)]

#### 󠀁[wp-cli/extension-command](https://github.com/wp-cli/extension-command/)󠁿

 * Add optional `--exclude=<name>` argument for multiple plugin commands [[#321](https://github.com/wp-cli/extension-command/pull/321)]
 * Fix broken Behat tests [[#318](https://github.com/wp-cli/extension-command/pull/318)]
 * Add title/description for `mu-plugins` [[#305](https://github.com/wp-cli/extension-command/pull/305)]
 * Avoid deleting parent of active theme unless using `--force` [[#324](https://github.com/wp-cli/extension-command/pull/324)]
 * Exit with `0` when checked theme is active parent theme [[#327](https://github.com/wp-cli/extension-command/pull/327)]

#### 󠀁[wp-cli/i18n-command](https://github.com/wp-cli/i18n-command/)󠁿

 * Extract pattern metadata (title & description) [[#312](https://github.com/wp-cli/i18n-command/pull/312)]
 * Look for `theme.json` files in the `styles` directory of a theme [[#311](https://github.com/wp-cli/i18n-command/pull/311)]
 * Translate `title` field from `theme.json` [[#306](https://github.com/wp-cli/i18n-command/pull/306)]
 * Add support for PHP-Blade files [[#304](https://github.com/wp-cli/i18n-command/pull/304)]
 * Fix include logic where include path is subdirectory of excluded path [[#302](https://github.com/wp-cli/i18n-command/pull/302)]
 * Add missing docs for `make-mo` command [[#315](https://github.com/wp-cli/i18n-command/pull/315)]
 * Add `update-po` command [[#316](https://github.com/wp-cli/i18n-command/pull/316)]
 * Improve warnings for strings with different comments [[#318](https://github.com/wp-cli/i18n-command/pull/318)]
 * Extract some shared code into `FileDataExtractor` [[#321](https://github.com/wp-cli/i18n-command/pull/319)]
 * Update and combine `theme.json` and `block.json` extractors [[#319](https://github.com/wp-cli/i18n-command/pull/315)]
 * Improve theme patterns and styles lookup [[#320](https://github.com/wp-cli/i18n-command/pull/320)]
 * Use `preg_match` instead of `mb_ereg` [[#317](https://github.com/wp-cli/i18n-command/pull/317)]
 * Prefix JSON files with text domain if needed [[#313](https://github.com/wp-cli/i18n-command/pull/313)]

#### 󠀁[wp-cli/import-command](https://github.com/wp-cli/import-command/)󠁿

 * Bail with status code if file does not exist [[#75](https://github.com/wp-cli/import-command/pull/75)]

#### 󠀁[wp-cli/language-command](https://github.com/wp-cli/language-command/)󠁿

 * Add warning for nonexistent plugins [[#115](https://github.com/wp-cli/language-command/pull/115)]

#### 󠀁[wp-cli/media-command](https://github.com/wp-cli/media-command/)󠁿

 * Fix read error detection in EXIF discovery [[#162](https://github.com/wp-cli/media-command/pull/162)]

#### 󠀁[wp-cli/package-command](https://github.com/wp-cli/package-command/)󠁿

 * Adapt test for changed Composer output [[#151](https://github.com/wp-cli/package-command/pull/151)]

#### 󠀁[wp-cli/php-cli-tools](https://github.com/wp-cli/php-cli-tools/)󠁿

 * Fix `${var}` string interpolation deprecation [[#148](https://github.com/wp-cli/php-cli-tools/pull/148)]
 * Fix logic to check for TTY [[#146](https://github.com/wp-cli/php-cli-tools/pull/146)]

#### 󠀁[wp-cli/scaffold-command](https://github.com/wp-cli/scaffold-command/)󠁿

 * Deprecate `scaffold block` in favor of `@wordpress/create-block` [[#311](https://github.com/wp-cli/scaffold-command/pull/311)]
 * Add `'testsuite'` name in `phpunit.xml.dist` [[#310](https://github.com/wp-cli/scaffold-command/pull/310)]
 * Add backup files ending with tilde to default `.distignore` [[#273](https://github.com/wp-cli/scaffold-command/pull/273)]

#### 󠀁[wp-cli/search-replace-command](https://github.com/wp-cli/search-replace-command/)󠁿

 * Restore `blogdescription` to fix test [[#171](https://github.com/wp-cli/search-replace-command/pull/171)]
 * Add further suppression of warnings and notices [[#172](https://github.com/wp-cli/search-replace-command/pull/172)]

#### 󠀁[wp-cli/server-command](https://github.com/wp-cli/server-command/)󠁿

 * Restore `blogdescription` to fix test [[#75](https://github.com/wp-cli/server-command/pull/75)]

### Contributors

[@2ndkauboy](https://github.com/2ndkauboy), [@alexstine](https://github.com/alexstine),
[@Ayesh](https://github.com/Ayesh), [@BhargavBhandari90](https://github.com/BhargavBhandari90),
[@borkweb](https://github.com/borkweb), [@brandonpayton](https://github.com/brandonpayton),
[@connerbw](https://github.com/connerbw), [@dan-m-joh](https://github.com/dan-m-joh),
[@danielbachhuber](https://github.com/danielbachhuber), [@dd32](https://github.com/dd32),
[@dlind1](https://github.com/dlind1), [@drzraf](https://github.com/drzraf), [@Flimm](https://github.com/Flimm),
[@gedex](https://github.com/gedex), [@GeoJunkie](https://github.com/GeoJunkie), 
[@github-actions[bot]](https://github.com/apps/github-actions), [@gitlost](https://github.com/gitlost),
[@greatislander](https://github.com/greatislander), [@herregroen](https://github.com/herregroen),
[@janw-me](https://github.com/janw-me), [@jenkoian](https://github.com/jenkoian),
[@johnbillion](https://github.com/johnbillion), [@jorgeatorres](https://github.com/jorgeatorres),
[@jrfnl](https://github.com/jrfnl), [@kjohnson](https://github.com/kjohnson), [@l3ku](https://github.com/l3ku),
[@localheinz](https://github.com/localheinz), [@lucatume](https://github.com/lucatume),
[@matzeeable](https://github.com/matzeeable), [@michaelzangl](https://github.com/michaelzangl),
[@oandregal](https://github.com/oandregal), [@ocean90](https://github.com/ocean90),
[@pbiron](https://github.com/pbiron), [@pdaalder](https://github.com/pdaalder), 
[@pmbaldha](https://github.com/pmbaldha), [@ponsfrilus](https://github.com/ponsfrilus),
[@schlessera](https://github.com/schlessera), [@shendy-a8c](https://github.com/shendy-a8c),
[@Sidsector9](https://github.com/Sidsector9), [@siliconforks](https://github.com/siliconforks),
[@spacedmonkey](https://github.com/spacedmonkey), [@strarsis](https://github.com/strarsis),
[@swissspidy](https://github.com/swissspidy), [@Tug](https://github.com/Tug), [@tyrann0us](https://github.com/tyrann0us),
[@versusbassz](https://github.com/versusbassz), [@wojsmol](https://github.com/wojsmol),
[@xyulex](https://github.com/xyulex), [@yousan](https://github.com/yousan)

[#release](https://make.wordpress.org/cli/tag/release/), [#v2-7-0](https://make.wordpress.org/cli/tag/v2-7-0/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2022%2F10%2F11%2Fwp-cli-v2-7-0-release-notes%2F%23respond&locale=en_US)

# Post navigation

[← Older posts](https://make.wordpress.org/cli/tag/release/page/2/?output_format=md)