Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.18 KB

File metadata and controls

55 lines (35 loc) · 1.18 KB
layout default
title wp user create
display_global_parameters true

Commands » user » create

wp user create - Create a user.

Quick links: Github issues


OPTIONS

<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.

EXAMPLES

# Create user
$ wp user create bob bob@example.com --role=author
Success: Created user 3.
Password: k9**&amp;I4vNH(&amp;