user Command - Medusa CLI Reference
Create a new admin user.
Options#
Option | Description | Required | Default |
---|---|---|---|
| The user's email. | Yes | - |
| The user's password. | No | - |
| The user's ID. | No | An automatically generated ID is used. |
| Whether to create a user invite instead of directly creating a user. Learn more in the Create User Invite section. | No |
|
Create User Invite with Medusa CLI#
The user
command accepts the --invite
option to create a user invite. The user must accept the invite before they can log into the Medusa Admin.
For example:
The command will create a user invite and output the invite token. You can then either:
- Accept the invite in the Medusa Admin at the path
/app/invite?token=<invite_token>
- Accept the invite using the Accept Invite API route.
Was this page helpful?