Here’s how to create a user:
wp user create username email@example.com --role=administrator
Replace username
, email@example.com
, and administrator
with your desired values.
--role
defines the user’s permission level (administrator
for full access).
How to reset the password of the newly created user.
wp user update ID --user_pass=new_password
wp user delete ID --reassign=new_user
Don’t forget to use the –reassign, otherwise important information from the website might be lost.
wp option get blogname
wp option update blogdescription "New Tagline"
wp option set admin_email 'new@gmail.com'
Have any questions or comments? Write them below!