> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: dev

## Article: dev

## Article Link: https://dev.wix.com/docs/wix-cli/cli-for-headless/command-reference/project-commands/dev.md

## Article Content:

# wix dev


Starts a local development environment that serves your project. When the environment is ready, the command prints links to preview your project's site and dashboard.

The development environment is set up for hot reloading, so any changes you make to your code are immediately reflected in the browser.

## Usage

```bash
wix dev [flags]
```

## Flags

The following flags are available for the `wix dev` command:

| Flag           | Description                             |
| -------------- | --------------------------------------- |
| `--port <port>` | Specify which port to run on. Defaults to 4321. |
| `--allowed-hosts <allowedHosts>` | A comma-separated list of hostnames the development server responds to. To allow any hostname, pass `true`. |