---
title: "Reset WordPress User Password Using WP-CLI"
description: "WP-CLI (WordPress Command Line Interface) is a WordPress function enabled for WordPress Hosting at InMotion. If you're unable to login, there are multiple ways to reset your WordPress password,..."
url: https://www.inmotionhosting.com/support/edu/wordpress/wp-cli/reset-user-password-using-wp-cli/
date: 2018-08-14
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["WP-CLI"]
type: post
lang: en
---

# Reset WordPress User Password Using WP-CLI

WP-CLI (*WordPress Command Line Interface*) is a WordPress function enabled for [WordPress Hosting](https://www.inmotionhosting.com/wordpress-hosting) at InMotion. If you’re [unable to login](/support/edu/wordpress/logging-into-wordpress-dashboard/#cant_login), there are multiple ways to [reset your WordPress password](/support/edu/wordpress/resetting-your-wordpress-admin-password/), including [via Softaculous](/support/edu/wordpress/how-to-log-into-wordpress-using-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](/support/server/ssh/shared-reseller-ssh/) or [VPS/Dedicated](/support/server/ssh/how-to-login-ssh/).
2. Use the `cd` command to enter the [domain’s document root](/support/server/ssh/how-to-login-ssh/), 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](/support/images/stories/wpcli/wp-cli-wp-user-list.png)
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](/support/edu/wordpress/wp-cli/).
