Back to Medusa

{metadata.title}

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

2.14.21.1 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.Body>

</Table>