You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add wp db status command for quick database health overview #306
I would like to suggesta new WP-CLI command: wp db status
The command would provide a concise, read-only overview of the current WordPress database health and configuration in a single output, reducing the need to run multiple separate commands.
For support, debugging, and hosting diagnostics, it would be beneficial to have a single, non-destructive command that aggregates key database information into one quick report.
Currently, checking database status requires running several commands such as: wp db size, wp db tables, wp db prefix, wp db check, etc.
My Proposed Command:
wp db status
Output Example:
Database Name: wp_mehrazmorshed
Tables: 54
Total Size: 312 MB
Prefix: wp_
Engine: InnoDB
Charset: utf8mb4
Collation: utf8mb4_unicode_ci
Check Status: OK
Yeah you can already try it out in the nightly release.
One difference is that the site-health command involves loading WordPress, whereas the db commands usually also work when WordPress is not even installed yet.
Although database info is available from "site-health" command I am positive is adding specific db command which gives info without loading whole WordPress. It would be helpful in scripting.
Activity
Soean commentedon Jan 29, 2026
There is a new package called site-health-command. (Included in the next WP CLI 2.13 release)
You can run
wp site-health info wp-database --privateResult:
mehrazmorshed commentedon Jan 29, 2026
Couldn't run in current setup.
I hope it will release soon.
ernilambar commentedon Jan 29, 2026
It will be included in next "3.0.0" version.
swissspidy commentedon Jan 29, 2026
Yeah you can already try it out in the nightly release.
One difference is that the site-health command involves loading WordPress, whereas the db commands usually also work when WordPress is not even installed yet.
ernilambar commentedon Jan 30, 2026
Although database info is available from "site-health" command I am positive is adding specific db command which gives info without loading whole WordPress. It would be helpful in scripting.