Introduce `wp db users`
@swissspidy is already working on this.
Since Jan 19, 2026.
Assessment
This issue has not been assessed yet.
Description
One of the most common tasks database administrators need to do is create user accounts for applications with full privileges to the application's database. I propose that we make that super simple in wp-cli using syntax similar to:
wp db users create --user --host --pass --privilegeduser --privilegedpass
Name of the database user to create.
Hosts that are permitted to connect as .
New user's password.
Database user with sufficient privileges to execute the command.
Privileged user's password.
This create command could be augmented by including list, delete, etc.
- Dominant language
- PHP
- Stars
- 76
- Forks
- 73
- Avg merge
- 9h 31m
- Merged PRs (30d)
- 2
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.
More from wp-cli/db-command
-
command:db-size scope:documentation
Difficulty 3/5 1-2 days Newbie friendliness 65/100
wp-cli/db-command#348 · 1 comment ·
-
bug command:db-query
wp-cli/db-command#319 · 5 comments · 1 reaction · 2 assignees ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 comments · 1 reaction · 2 assignees ·
-
bug command:db-export
Difficulty 3/5 1-2 days Newbie friendliness 45/100
wp-cli/db-command#289 · 2 comments ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Difficulty 5/5 Over a week Newbie friendliness 25/100
wp-cli/db-command#327 · 8 comments · 2 reactions ·
All issues in wp-cli/db-command
Similar issues
-
status/awaiting_triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
WordPress/plugin-check#1486 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
az-digital/az_quickstart#6019 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
grokability/snipe-it#19688 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100