You have to be under the public_html folder.
wp user create admin admin@domain.com --role=administrator
Here’s the WordPress documentation on wp user create command.
Learn How to connect to SSH with terminal here.
How to display all the users
wp user list
To update the user password
wp user update user_id --user_pass=password
Have any questions or comments? Write them below!
Leave a Reply