15e87a8100
* feat(create-medusa-app): added stable option * add new function * changed open url * switch condition * fix open url for stable * add URI encoding * modified db error message
20 lines
553 B
JavaScript
20 lines
553 B
JavaScript
#!/usr/bin/env node
|
|
import { program } from "commander"
|
|
import create from "./commands/create.js"
|
|
|
|
program
|
|
.description("Create a new Medusa project")
|
|
.option("--repo-url <url>", "URL of repository to use to setup project.")
|
|
.option("--seed", "Seed the created database with demo data.")
|
|
.option(
|
|
"--no-boilerplate",
|
|
"Install a Medusa project without the boilerplate and demo files."
|
|
)
|
|
.option(
|
|
"--stable",
|
|
"Install the latest stable version. This removes all onboarding features"
|
|
)
|
|
.parse()
|
|
|
|
void create(program.opts())
|