NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1524 most downloaded on Packagist
Performs basic database operations using credentials stored in wp-config.php.
Latest stable
v3.0.3
Last release 20 days ago
02 Nov 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 52 of 53 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
53 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Expect the configured test database name and user [ #357 ]
Support DB_PATH for SQLite database commands [ #351 ]
Adapt SQLite support to sqlite-database-integration 3.0 [ #344 ]
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Modernize deprecated syntax in Behat tests [ #338 ]
wp db repair --verbose test for MariaDB [#336]Utils\get_mysql_binary_path() to get correct binary [#328]db export: Avoid exec() in option probe [ #326 ]
Fix: REPLACE() string function misidentified as write query [ #314 ]
Fix db sizes test for WP trunk [ #297 ]
Composer: prevent a lock file from being created [ #273 ]
Update tests after change in WP trunk [ #257 ]
Add note about multisite usage in wp db query docs [ #251 ]
Better document --skip-column-names for retrieving a specific value [ #249 ]
- Update to WPCS v3 [#240]
Replace empty namespace autoloader with classmap [#235]
Fix retrieval of get_post_table_characterset [#231]
Fix PHP 8.1 fatal error with --orderby=size and --size_format=mb [#230]
--orderby=size and --size_format=mb [#230]Allow wordpress-core-installer in composer.json [#227]
Fix broken tests due to DB connection failure error message change [#224]
Fix "WP_DEBUG already defined" test failure [#220]
- Regenerate README file [#217]
Adapt feature test to use HTTPS with example.com [#216]
Fix table existence check in db columns [#210]
- Regenerate README file [#207]
Add --defaults flag to remaining commands [#206]
--defaults flag to remaining commands [#206]Refactor --defaults flag handling [#205]
- Regenerate README file [#194]
Use version range for wp-cli/wp-cli-tests dependency [#193]
Switch to GitHub Actions [#182]
Use MySQL binary in interactive mode for db cli command [#178]
db cli command [#178]Bump PHPCS compatibility tests to new PHP 5.6+ minimum [#172]
Add SQL mode compat query to db import command [#170]
Emulate WordPress SQL mode compat hack [#169]
Fix typo and docs standards [#162]
Make wp db clean get all the tables with prefix [#152]
Fix tests for changes in WP Core 5.3 [#149]
- Update README.md file [#143]
Implement CS checking based on the WP_CLI_CS ruleset [#141]
WP_CLI_CS ruleset [#141]WP_VERSION latest to 5.1 [#137]WP_CLI classname [#135]--all-tables and --all-tables-with-prefix output when combined with --size_format [#134]--size_format argument definition. [#130]Fix comment argument test [#127]
--human-readable parameter to db size command [#124]mysql flags while importing database [#123]move command [#121]db clean to README.md and configuration files [#119]--format & --size_format flags [#118]Adapt package for framework v2 [#110]
Add ISO size formats to db size [#104]
Count users instead of posts for the smoke test [#98]
db columns command [#100]db clean command [#93]wp_blogmeta table [#94]Obey prefix when using table wildcards [#73]
Ensures default value of --size_format= argument is always bytes [#69].
Updates scaffolded tests to enable error reporting [#59].
Uses new after_wp_config_load early invoke to run wp db * commands [#57].
db *:
after_wp_config_load early invoke to run wp db * commands [#57].Avoids displaying default delimiter on regex fail in db search [#56].
db search:
Lessens context duplication by shortening and appending context if it overlaps with the next match [#55].
db search:
Moves statement to a newline for doc parsing needs [#53].
Includes Y-m-d in default export file name [#36].
Introduces wp db prefix for getting the $wpdb->prefix for a site [#22].
wp db prefix for getting the $wpdb->prefix for a site [#22].wp db search for searching through the database for a given string [#29, #33].size_format() for pre-4.6 compat [#26].isset() check before unset() [#27].dist: precise for PHP 5.3, dist: trusty for everything else [#32].Introduces wp db size to get the size of the database and its tables.
wp db size to get the size of the database and its tables.--exclude_tables=<tables> option when exporting a database./usr/bin/env mysql instead of mysql when calling MySQL executable.Adds database name to confirmation prompts for wp db drop and wp db reset commands.
wp db drop and wp db reset commands.Nothing published for this version
One column per quarter.