Guides › WordPress › Site down or error screens

WP-CLI: Reset an Admin Password or Create an Admin User When Locked Out

From the command line you can recover access without email.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

Reset a password

  1. Connect by SSH to the server and go to the site folder.
  2. List users: wp user list.
  3. Set a new password for a user ID: wp user update 1 --user_pass='new-strong-password'.

Create a temporary admin

wp user create name email@example.com --role=administrator

Remove it when done.

Afterwards

Without SSH, see Locked Out of WordPress Admin: Reset Your Password Without Email.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.