user Command - Medusa CLI Reference

Create a new admin user.

Terminal
npx medusa user --email <email> [--password <password>]

Options#

OptionDescriptionRequiredDefault

-e <email>, --email <email>

The user's email.

Yes

-

-p <password>, --password <password>

The user's password.

No

-

-i <id>, --id <id>

The user's ID.

No

An automatically generated ID.

--invite

Whether to create an invite instead of a user. When using this option, you don't need to specify a password. If ran successfully, you'll receive the invite token in the output.

No

false

Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break