new-user
โดย medusajs
สร้างผู้ดูแลระบบใหม่ใน Medusa ด้วยอีเมลและรหัสผ่าน รับอีเมลและรหัสผ่านเป็นอาร์กิวเมนต์คำสั่งเพื่อตั้งค่าข้อมูลประจำตัวผู้ดูแลระบบ ดำเนินการคำสั่ง npx medusa user ผ่าน Bash ด้วยแฟล็ก -e และ -p รายงานผลสำเร็จในการสร้าง อีเมลผู้ใช้ ข้อผิดพลาด และขั้นตอนถัดไปสำหรับการเข้าสู่ระบบแดชบอร์ดผู้ดูแลระบบ
npx skills add https://github.com/medusajs/medusa-agent-skills --skill new-userCreate 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)