How to create a new wordpress user using the WP CLI

Sometimes you may not have a login to a user’s WordPress account. The method below gives a nice work around to create an account for yourself. Its a bit technical, but it works well.

  • Log in to whmcs, and go the product. Take note of the cpanel username and password
  • Open up a console and type ssh [email protected] -p 7822
  • go to the WordPress directory.   cd /public_html
  • type wp user create username [email protected] --role=administrator --user_pass=mypassword
Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!