new Command - Medusa CLI Reference
Create a new Medusa application. Unlike the create-medusa-app CLI tool, this command provides more flexibility for experienced Medusa developers in creating and configuring their project. It creates a monorepo structure with your Medusa backend in the apps/backend directory.
Arguments#
Argument | Description | Required | Default |
|---|---|---|---|
| The name of the directory to create the Medusa application in. If not provided, you'll be prompted to enter a project name. | No | - |
Options#
Option | Description |
|---|---|
| Skip all prompts, such as database prompts. A database might not be created if default PostgreSQL credentials don't work. |
| Skip database creation. |
| Skip populating |
| The database user to use for database setup. |
| The name of the database used for database setup. |
| The database password to use for database setup. |
| The database port to use for database setup. |
| The database host to use for database setup. |
| Skip running migrations and seeding. |
| The branch to clone from the starter repository. |
Example#
After running the command, navigate to your project directory and start the development server: