Skip to content

wordpress User Management

Grant edited this page Jun 15, 2023 · 3 revisions

DRAFT

User List

/opt/wp-cli/wp --path=/srv/blog.example.org/wp/ user list

Add User

/opt/wp-cli/wp --path=/srv/blog.example.org/wp/ user create *username* [email protected] --role=administrator

Random password is returned via CLI command.

Disable User (aka remove roles)

/opt/wp-cli/wp --path=/srv/blog.example.org/wp/ *user/id* remove-role *role or empty = all roles*