start Command - Medusa CLI Reference

Start the Medusa application in production.

Terminal
npx medusa start

Options#

OptionDescriptionDefault

-H <host>, --host <host>

Set host of the Medusa server.

localhost

-p <port>, --port <port>

Set port of the Medusa server.

9000

--cluster <number>

Start Medusa's Node.js server in cluster mode. Running in cluster mode significantly improves performance as the workload and tasks are distributed among all available instances instead of a single one.

Cluster mode is disabled by default. If the option is passed but no number is passed, Medusa will try to consume all available CPU cores.

Was this page helpful?
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