new-user

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Create Admin User

创建管理员用户

Create a new admin user in Medusa with the specified email and password.
The user will provide two arguments:
  • First argument: email address
  • Second argument: password
For example:
/medusa-dev:user admin@test.com supersecret
Use the Bash tool to execute the command
npx medusa user -e <email> -p <password>
, replacing
<email>
with the first argument and
<password>
with the second argument.
Report the results to the user, including:
  • Confirmation that the admin user was created successfully
  • The email address of the created user
  • Any errors that occurred
  • Next steps (e.g., logging in to the admin dashboard)
在Medusa中使用指定的邮箱和密码创建一个新的管理员用户。
用户需要提供两个参数:
  • 第一个参数:邮箱地址
  • 第二个参数:密码
例如:
/medusa-dev:user admin@test.com supersecret
使用Bash工具执行命令
npx medusa user -e <email> -p <password>
,将
<email>
替换为第一个参数,
<password>
替换为第二个参数。
向用户报告结果,包括:
  • 确认管理员用户是否创建成功
  • 已创建用户的邮箱地址
  • 出现的任何错误
  • 后续步骤(例如,登录管理员控制台)