new-user
bởi medusajs
Tạo người dùng quản trị mới trong Medusa với email và mật khẩu. Chấp nhận email và mật khẩu làm đối số lệnh để thiết lập thông tin quản trị. Thực thi lệnh npx medusa user qua Bash với cờ -e và -p. Báo cáo thành công tạo, email người dùng, lỗi và các bước tiếp theo để đăng nhập vào bảng điều khiển quản trị.
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)