Back to Medusa

{metadata.title}

www/apps/resources/app/medusa-cli/commands/develop/page.mdx

2.17.01.8 KB
Original Source

import { Table } from "docs-ui"

export const metadata = { title: develop Command - Medusa CLI Reference, }

{metadata.title}

Start the Medusa application in development.

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

bash
npx medusa develop

Options

<Table> <Table.Header> <Table.Row> <Table.HeaderCell>Option</Table.HeaderCell> <Table.HeaderCell>Description</Table.HeaderCell> <Table.HeaderCell>Default</Table.HeaderCell> </Table.Row> </Table.Header> <Table.Body> <Table.Row> <Table.Cell>
  `-H <host>`, `--host <host>`
  
  </Table.Cell>
  <Table.Cell>

  Set the host of the Medusa server.
  
  </Table.Cell>
  <Table.Cell>

  `localhost`

  </Table.Cell>
</Table.Row>
<Table.Row>
  <Table.Cell>
  
  `-p <port>`, `--port <port>`
  
  </Table.Cell>
  <Table.Cell>

  Set the port of the Medusa server.
  
  </Table.Cell>
  <Table.Cell>

  `9000`

  </Table.Cell>
</Table.Row>
<Table.Row>
  <Table.Cell>

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

  </Table.Cell>
  <Table.Cell>

  Run the Medusa linter before starting the dev server. Pass `--no-lint` to skip linting. When lint errors are found, the dev server does not start. Linting is skipped automatically when no `eslint.config.js` is found in the project root.

  </Table.Cell>
  <Table.Cell>

  `true`

  </Table.Cell>
</Table.Row>
<Table.Row>
  <Table.Cell>

  `--fix` (v2.16.0+)

  </Table.Cell>
  <Table.Cell>

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

  </Table.Cell>
  <Table.Cell>

  `false`

  </Table.Cell>
</Table.Row>

</Table.Body>

</Table>