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.

Terminal
medusa new [<dir_name> [<starter_url>]]

Arguments#

ArgumentDescriptionRequiredDefault

dir_name

The name of the directory to create the Medusa application in.

Yes

-

starter_url

The name of the directory to create the Medusa application in.

No

https://github.com/medusajs/medusa-starter-default

Options#

OptionDescription

-y, --useDefaults

Skip all prompts, such as databaes prompts. A database might not be created if default PostgreSQL credentials don't work.

--skip-db

Skip database creation.

--skip-env

Skip populating .env.

--db-user <user>

The database user to use for database setup.

--db-database <database>

The name of the database used for database setup.

--db-pass <password>

The database password to use for database setup.

--db-port <port>

The database port to use for database setup.

--db-host <host>

The database host to use for database setup.

Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break