How to add users and update password in WordPress through SSH

Posted on: January 23rd, 2024
By: Tadeo Martinez

Here’s how to create a user:

wp user create username --role=administrator

Replace, and administrator with your desired values.

--role defines the user’s permission level (administrator for full access).

Reset Password

How to reset the password of the newly created user.

wp user update username --user_pass=new_password

Delete User

wp user delete old_user --reassign=new_user

Don’t forget to use the –reassign, otherwise important information from the website might be lost.

Update Site Title

wp option get blogname

Update Tagline

wp option update blogdescription "New Tagline"

Have any questions or comments? Write them below!

Leave a Reply

Your email address will not be published. Required fields are marked *