Deprecated
The Astro-based Wix CLI for Apps is deprecated. New projects should use the Wix CLI for Apps.
Starts a local development environment that serves your project. Follow the prompts to open the site or dashboard of your project in the local development environment in your browser.
The development environment is set up for hot reloading, so any changes you make to your code are immediately reflected in the browser.
Note: In an interactive session, press C while the local development environment is running to choose a different development site. In non-interactive environments, run wix dev-site before running wix dev.
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> | Specify a comma-separated list of allowed hosts or allow any hostname. |
Last updated: 10 November 2026