How to reset user password in WordPress using wp-cli
WP-CLI offers awesome capabilities to manage your WordPress site.
In order to reset user password, just execute this command from WordPress installed directory (docroot directory, which is typically named public_html in cPanel server).
You have to be logged in via SSH in order to be able to execute this command.
1 2 3 |
wp user update USERNAME --user_pass="PASSWORD" |