InMotion Hosting Support Center

WP-CLI (WordPress Command Line Interface) is a WordPress function enabled for WordPress Hosting at InMotion. There are multiple ways to reset your WordPress password, including via Softaculous. Here we'll cover how to reset a WordPress user password using WP-CLI.

Reset the User Password

  1. SSH into your server and the cPanel user which owns the website using the correct steps for your hosting plan - shared or VPS/Dedicated.
  2. Use the cd command to enter the domain's document root, e.g. cd public_html

    NOTE: Be sure to replace public_html/my_website with the actual path to the document root directory of your website.

  3. Ensure you're in the correct WordPress installation with the following command:

    wp option get home && wp option get siteurl

  4. To list all users within that website, type the following command:

    wp user list

    Below is an example of the expected output.

    WP CLI wp user list screenshot
  5. Use the following command to reset the WordPress user password replacing USER with the appropriate user-login and NewStrongPassword with a strong password:

    wp user update USER --user_pass=NewStrongPassword

Congratulations on resetting your WordPress user password from the command line. Learn more about WP-CLI at our WP-CLI Education Channel.

Was this article helpful?
Continued Education in Course 208:Managing WordPress Installations
You are viewing Section 1: Reset WordPress User Password Using WP-CLI
Section 2: How do I install Google Analytics to WordPress using a plugin?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!