develop Command - Medusa CLI Reference

Start the Medusa application in development.

This command watches files for any changes, then rebuilds the files and restarts the Medusa application.

Options#

Option

Description

Default

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

Set the host of the Medusa server.

localhost

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

Set the port of the Medusa server.

9000

--lint / --no-lint (v2.16.0+)

Run the Medusa linter before starting the dev server. Pass --no-lint to skip linting. Enabled by default only when @medusajs/eslint-plugin is installed in the project. When lint errors are found, the dev server does not start. Linting is also skipped automatically when no eslint.config.js is found in the project root.

true when @medusajs/eslint-plugin is installed, false otherwise

--fix (v2.16.0+)

Auto-fix lint issues where possible before starting the dev server.

false

Was this page helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Docs MCP server in Cursor, VSCode, etc...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
⇧↵