new-user

作者: medusajs

在 Medusa 中透過電子郵件和密碼建立新的管理員使用者。接受電子郵件和密碼作為命令參數來設定管理員憑證。透過 Bash 使用 -e 和 -p 標誌執行 npx medusa user 命令。回報建立成功、使用者電子郵件、錯誤以及管理員儀表板登入的後續步驟。

npx skills add https://github.com/medusajs/medusa-agent-skills --skill new-user

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)