With the Wix CLI, you can develop, test, and release Wix apps from your terminal. This reference documents the commands for creating and working in app projects.
The sections of this article are organized by command type, and each section describes the syntax of its commands. Every command accepts -h and --help, which print the command's usage and flags.
The commands you can use depend on where you run them:
This command scaffolds a new project. It's provided by the @wix/create-new package, so it runs through npm create, not as a wix command, before a project exists locally.
| Command | Description |
|---|---|
| npm create @wix/new app | Creates a new Wix app project, including registering a new app in your account (or extending an existing one) and scaffolding from a template. |
The project creation command uses this syntax:
Angle brackets mark a required part, and square brackets mark an optional part. Don't type the brackets.
The -- separator forwards everything after it to the @wix/create-new package instead of consuming the flags itself.
These commands operate on a project that uses the app project structure. Run them in the project's folder.
| Command | Description |
|---|---|
| dev | Starts a local development environment that serves your project. |
| dev-site | Manages the development site used by the current app. |
| build | Builds your project. |
| generate | Generates an extension for your project. |
| schema | Prints a JSON schema of the available extension types and their required inputs. |
| preview | Creates an online preview of your built project. |
| release | Starts a process that guides you through releasing your project. |
| env | Manages your project's environment variables on Wix's servers. |
Project commands follow this general form:
Angle brackets mark a required part, and square brackets mark an optional part. Don't type the brackets.
Where:
<command> is the primary action (for example, dev, build, release)[subcommand] is a secondary action for commands that have subcommands (for example, set in wix app env set)[flags] are parameters that modify the command's behaviorWhen a command requires a subcommand, its Usage section shows <subcommand>. Running the command without a subcommand prints the command's help and exits with an error code.
Last updated: 10 November 2026