> 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-apps/command-reference/project-commands/dev.md

## Article Content:

# wix app dev


Starts a local development environment that serves your project. When the environment is ready, the command prints links to preview your app on your development site: in the site, the editor, and the dashboard.

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

> **Note**: `wix app dev` runs your app on a development site. To install your app on one, switch to another, or set one in a non-interactive environment, see [Work with Development Sites](https://dev.wix.com/docs/build-apps/develop-your-app/development-sites/work-with-development-sites.md).

## Usage

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

## Flags

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

| Flag           | Description                             |
| -------------- | --------------------------------------- |
| `--port <port>` | Specify which port to run on. |
| `--allowed-hosts <allowedHosts>` | Specify a comma-separated list of allowed hosts. |