Adding a New User in WordPress Dashboard
Log in and view the admin panel of your WordPress site.
Click Users > Add User in the panel on the left side of the interface.
Enter the new user's username and email address. Do note that neither of these can be changed later.
Select the desired role for the new user and click the Add User button.
The user will receive an email with password instructions.
Remember to ensure the user will practice good password hygiene!
Don't see the tab in the Dashboard? Make sure you're logged in as an administrator level user.
Adding a New User with WP-CLI
Make an SSH connection to your site.
Run the following command:
wp user create example [email protected] --role=subscriber --send-email
First "example" is the user's username, following their email address. Do note that neither of these can be changed later. Possible values for the role are "administrator", "editor", "author", "contributor" and "subscriber".
The command will print the set password but the user will also receive an email with password instructions. If you don't want to print the password, use
--porcelainflag.Remember to ensure the user will practice good password hygiene!
More about different roles and their capabilities can be read from WordPress.org's documentation!

