Search for a command to run...
A CLI tool to quickly scaffold a Medusa plugin and example projects in a ready-to-develop monorepo structure.
uses the official under the hood to scaffold Medusa projects—including the plugin, backend and storefront folders. This ensures your setup follows official best practices and remains fully compatible with the Medusa ecosystem by leveraging the official Medusa app generator.
Terminalnpx create-medusa-plugin [plugin-name] [options]
Replace with your desired plugin name.
Terminalnpx create-medusa-plugin
This command will prompt you for the plugin name and other configuration options interactively.
Terminalnpx create-medusa-plugin my-plugin -r my-plugin-monorepo -e my-plugin-example --skip-example-db
This command scaffolds the following monorepo structure, installing the Medusa projects within it:
Monorepo structure1|2└── my-plugin-monorepo/3 ├── examples/4 │ └── my-plugin-example/5 │ ├── medusa/6 │ └── medusa-storefront/7 ├── packages/8 │ └── my-plugin/9 ├── package.json10 └── README.md
Terminalnpx create-medusa-plugin @my-scope/my-plugin -r my-plugin-monorepo -e my-plugin-example --skip-example-db
This command scaffolds the following monorepo structure, placing your scoped plugin in a nested folder under and installing the Medusa projects within it:
Monorepo structure1|2└── my-plugin-monorepo/3 ├── examples/4 │ └── my-plugin-example/5 │ ├── medusa/6 │ └── medusa-storefront/7 ├── packages/8 │ └── @my-scope/9 │ └── my-plugin/10 ├── package.json11 └── README.md
Default:
Default:
Default:
Default: