Reset Wordpress Password via WP CLI

WP CLI is a command line tool for managing your WordPress installation.

Install WP CLI

$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
$ php wp-cli.phar --info
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar /usr/local/bin/wp

Move into the wordpress directory and type:

$ wp user list

to see all users. Find the ID of the user you’d like to update.

Then, update the user

$ wp user update 1 --user_pass=$UP3RstrongP4$w0rd

replacing “1” with the id of the user you want to update.

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these

No Related Post