wp user create
Create a new WordPress user from the command line using WP-CLI — with role, password, and profile fields.
wp user update
Update existing WordPress user fields, passwords, emails, and meta using WP-CLI.
wp user delete
Permanently delete WordPress users from the command line, with optional content reassignment using WP-CLI.
wp user list
List and filter WordPress users by role, status, and field using WP-CLI. Export user data for auditing and scripting.
wp user get
Retrieve detailed information about a specific WordPress user using WP-CLI.
wp user generate
Generate bulk dummy WordPress users for testing and development using WP-CLI.
wp user set-role
Replace a WordPress user's current role with a new one using WP-CLI.
wp user add-role
Add a secondary role to an existing WordPress user using WP-CLI — useful for multi-role setups like WooCommerce.
wp user remove-role
Remove a specific role from a WordPress user without affecting their other roles using WP-CLI.
wp user meta
Get, add, update, and delete WordPress user meta fields using WP-CLI.
wp user session
List and destroy active WordPress user sessions using WP-CLI — essential for security incident response.
wp role list
List all registered WordPress roles and their capabilities using WP-CLI.
wp role create
Create a custom WordPress user role with WP-CLI.
wp role delete
Remove a custom WordPress user role using WP-CLI.
wp role reset
Reset WordPress built-in roles to their default capabilities using WP-CLI.
wp cap list
List all capabilities assigned to a WordPress role using WP-CLI.
wp cap add
Grant additional capabilities to a WordPress role using WP-CLI.
wp cap remove
Remove capabilities from a WordPress role using WP-CLI.