Add `wp db status` command for quick database health overview
Open
Nobody has claimed this yet.
command:db
scope:distribution
state:unconfirmed
- Dominant language
- PHP
- Stars
- 76
- Forks
- 73
- Avg merge
- 9h 31m
- Merged PRs (30d)
- 2
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.