Wix CLI for Apps Command Reference

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:

Project creation commands

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.

CommandDescription
npm create @wix/new appCreates a new Wix app project, including registering a new app in your account (or extending an existing one) and scaffolding from a template.

Command syntax

The project creation command uses this syntax:

Copy

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.

Project commands

These commands operate on a project that uses the app project structure. Run them in the project's folder.

CommandDescription
devStarts a local development environment that serves your project.
dev-siteManages the development site used by the current app.
buildBuilds your project.
generateGenerates an extension for your project.
schemaPrints a JSON schema of the available extension types and their required inputs.
previewCreates an online preview of your built project.
releaseStarts a process that guides you through releasing your project.
envManages your project's environment variables on Wix's servers.

Command syntax

Project commands follow this general form:

Copy

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 behavior

When 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

Did this help?