Reset WordPress admin password via WP-CLI

The following tutorial covers resetting the WordPress admin password via WP-CLI.

We will do the whole thing in a few seconds.

We log into the console

and go to the directory where our wordpress is located

The next step is to display users who can edit wordpress

We will do this by issuing an order:

the last step is to change the password by issuing the command:

wp user update 1 we replace our user ID

–user_pass=A new password replaced with a new password.

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.