auth0 users create
Create a new user.
To create interactively, use auth0 users create with no flags.
To create non-interactively, supply the name and other information through the available flags.
Use ‘–schema’ to print the request payload schema and exit. Use ‘–data’ to supply the full JSON payload (validated against the schema before sending).
Usage
auth0 users create [flags]
Examples
auth0 users create
auth0 users create --name "John Doe"
auth0 users create --name "John Doe" --email john@example.com
auth0 users create --name "John Doe" --email john@example.com --connection-name "Username-Password-Authentication" --username "example"
auth0 users create -n "John Doe" -e john@example.com -c "Username-Password-Authentication" -u "example" --json
auth0 users create -n "John Doe" -e john@example.com -c "Username-Password-Authentication" -u "example" --json-compact
auth0 users create -n "John Doe" -e john@example.com -c "email" --json
auth0 users create -e john@example.com -c "email"
auth0 users create --phone-number +916898989898 --connection-name "sms"
auth0 users create -m +916898989898 -c "sms" --json
auth0 users create -m +916898989898 -c "sms" --json-compact
# Discover the payload schema
auth0 users create --schema
auth0 users create --schema --json
# JSON input mode (for agents and automation)
auth0 users create --data '{"email":"john@example.com","password":"...","connection":"Username-Password-Authentication"}'
auth0 users create --data @user.json
cat user.json | auth0 users create
Flags
-c, --connection-name string Name of the database connection this user should be created in.
--data string JSON payload for the operation, as a JSON string or file path (@file.json). Can also be piped via stdin.
-e, --email string The user's email.
--json Output in json format.
--json-compact Output in compact json format.
-n, --name string The user's full name.
-p, --password string Initial password for this user (mandatory for non-SMS connections).
-m, --phone-number string The user's phone number.
--schema Print the request payload schema for this command and exit. Use with --json or --json-compact for machine-readable output.
-u, --username string The user's username. Only valid if the connection requires a username.
Inherited Flags
--agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable.
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Related Commands
- auth0 users blocks - Manage brute-force protection user blocks
- auth0 users create - Create a new user
- auth0 users delete - Delete a user
- auth0 users import - Import users from schema
- auth0 users open - Open the user’s settings page
- auth0 users refresh-tokens - Manage a user’s refresh tokens
- auth0 users roles - Manage a user’s roles
- auth0 users search - Search for users
- auth0 users search-by-email - Search for users
- auth0 users sessions - Manage a user’s sessions
- auth0 users show - Show an existing user
- auth0 users update - Update a user