Skip to main content
Keep Your Business Open During COVID-19Learn More
Call us
Phone numbers and hours
Request a Call

Avoid the wait. Make a request and we will call you back

Request a Call
Help Center

Explore our online help resources

BlogHelp

GoDaddy Help

Change your WordPress password with WP-CLI

WP-CLI is a command line tool that helps you perform different actions on your WordPress site. If you're comfortable with using SSH commands, you'll notice that WP-CLI has simplified commands created for WordPress sites. Here's how to change your password with commands available in WP-CLI.

Warning: You should always back up your site before making any changes to the database.
Required: You'll need the following to complete these steps:
Note: If you have a VPS or DED Server, you need to install WP-CLI before you can start using it. WP-CLI is not available on our Windows Hosting plans.
  1. Connect to your hosting account with SSH.
  2. Use the bash command ls to list files and folders, and cd and ../ to move through directories until you're in the directory with your WordPress files.
  3. Enter the following command to view a list of users for your WordPress site. Make note of the ID number for the user you want to update.
    wp user list
  4. Enter the following command to update the password for that user.
    wp user update id --user_pass=password
    In the command above, you should replace:

You can now log in with your new password.

More Info