| layout | default |
|---|---|
| title | wp user create |
| display_global_parameters | true |
wp user create - Create a user.
Quick links: Github issues
<user-login> : The login of the user to create.
<user-email> : The email address of the user to create.
[--role=<role>] : The role of the user to create. Default: default role
[--user_pass=<password>] : The user password. Default: randomly generated
[--user_registered=<yyyy-mm-dd>] : The date the user registered. Default: current date
[--display_name=<name>] : The display name.
[--first_name=<first_name>] : The user's first name.
[--last_name=<last_name>] : The user's last name.
[--send-email] : Send an email to the user with their new account details.
[--porcelain] : Output just the new user id.
# Create user
$ wp user create bob bob@example.com --role=author
Success: Created user 3.
Password: k9**&I4vNH(&