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:

  • An SSH app. We suggest PuTTY for Windows, or Terminal for macOS.
  • Your FTP details. If you donโ€™t have them already written down, you should find your FTP host, username, and password:
    • For your FTP host, you can use either your domain name or your IP address.
    • You can find your FTP username and password in your hosting account forย Linux Hosting with cPanelย orย Managed WordPress Hosting (steps 1-7).

 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
  5. In the command above, you should replace:

You can now log in with your new password.

More Info

- SolveForce -

๐Ÿ—‚๏ธ Quick Links

Home

Fiber Lookup Tool

Suppliers

Services

Technology

Quote Request

Contact

๐ŸŒ Solutions by Sector

Communications & Connectivity

Information Technology (IT)

Industry 4.0 & Automation

Cross-Industry Enabling Technologies

๐Ÿ› ๏ธ Our Services

Managed IT Services

Cloud Services

Cybersecurity Solutions

Unified Communications (UCaaS)

Internet of Things (IoT)

๐Ÿ” Technology Solutions

Cloud Computing

AI & Machine Learning

Edge Computing

Blockchain

VR/AR Solutions

๐Ÿ’ผ Industries Served

Healthcare

Finance & Insurance

Manufacturing

Education

Retail & Consumer Goods

Energy & Utilities

๐ŸŒ Worldwide Coverage

North America

South America

Europe

Asia

Africa

Australia

Oceania

๐Ÿ“š Resources

Blog & Articles

Case Studies

Industry Reports

Whitepapers

FAQs

๐Ÿค Partnerships & Affiliations

Industry Partners

Technology Partners

Affiliations

Awards & Certifications

๐Ÿ“„ Legal & Privacy

Privacy Policy

Terms of Service

Cookie Policy

Accessibility

Site Map


๐Ÿ“ž Contact SolveForce
Toll-Free: 888-765-8301
Email: support@solveforce.com

Follow Us: LinkedIn | Twitter/X | Facebook | YouTube

Newsletter Signup: Subscribe Here