Requirements
- Node.js v20+ (LTS version)
- Git
- PostgreSQL v14+
Create a new project
- downloads the template
- installs dependencies
- creates and migrates the database
- seeds initial data
- starts the development server and opens the admin setup page in your browser
Options
| Option | Description | Default |
|---|---|---|
--template <template> | Template to use (basic or plugin) | prompted |
--db-connection-string <string> | Full PostgreSQL connection string | — |
--db-host <host> | PostgreSQL host | localhost |
--db-port <port> | PostgreSQL port | 5432 |
--no-deps | Skip dependency installation | — |
--skip-db | Skip database setup | — |
Access your marketplace
Once the development server is running, your marketplace is available at:| Panel | URL |
|---|---|
| API | http://localhost:9000 |
| Admin Panel | http://localhost:9000/dashboard |
| Vendor Panel | http://localhost:9000/seller |
Create an admin account
The CLI automatically opens the admin invite page in your browser after setup. Follow the on-screen instructions to create your first admin account.Create your first seller
The seed data does not include a seller account. To create one, open the Vendor Panel and register:Start the development server
After stopping the server, start it again from your project directory:Initialize an existing project
If you have an existing Medusa project, initialize Mercur in it:blocks.json configuration file in your project.