WordPress WP-CLI 2 · Users

Reset a user's password

Set a new password for the user with ID 1. Use a real password.

wp user update 1 --user_pass=change-me

Official WordPress WP-CLI 2 documentation

More users commands

All users commands · WordPress WP-CLI 2 cheatsheet

Was this page helpful?