$npx -y skills add medusajs/medusa-agent-skills --skill new-userCreate an admin user in Medusa
| 1 | # Create Admin User |
| 2 | |
| 3 | Create a new admin user in Medusa with the specified email and password. |
| 4 | |
| 5 | The user will provide two arguments: |
| 6 | - First argument: email address |
| 7 | - Second argument: password |
| 8 | |
| 9 | For example: `/medusa-dev:user admin@test.com supersecret` |
| 10 | |
| 11 | 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. |
| 12 | |
| 13 | Report the results to the user, including: |
| 14 | |
| 15 | - Confirmation that the admin user was created successfully |
| 16 | - The email address of the created user |
| 17 | - Any errors that occurred |
| 18 | - Next steps (e.g., logging in to the admin dashboard) |