--- sidebar_label: "new" sidebar_position: 1 --- import { Table } from "docs-ui" export const metadata = { title: `new Command - Medusa CLI Reference`, } # {metadata.title} 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. ```bash medusa new [ []] ``` ## Arguments Argument Description Required Default `dir_name` The name of the directory to create the Medusa application in. Yes \- `starter_url` The URL of the starter repository to create the project from. No `https://github.com/medusajs/medusa-starter-default`
## Options Option Description `-y`, `--useDefaults` Skip all prompts, such as database 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 ` The database user to use for database setup. `--db-database ` The name of the database used for database setup. `--db-pass ` The database password to use for database setup. `--db-port ` The database port to use for database setup. `--db-host ` The database host to use for database setup.