How to reset user password in WordPress using wp-cli

73 viewswordpresswp-cli
seoranking16 admin edited answer
ClosedQuestion is closed for new answers

We are using cPanel account which provides access to wp-cli via SSH. Is there a way to reset user password using it (wp-cli)? When I try wp help user it does not list such option.

1

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.

 

 

Categories