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 | — |
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.