Wix CLI Reference

With Wix CLI you can develop, test, and deploy Wix projects directly from your terminal. This reference guide provides detailed documentation for all available CLI commands.

Project creation

These commands scaffold a new project. They're provided by the @wix/create-new package and are invoked through npm create, 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.
npm create @wix/new headlessCreates a new Wix headless project, including provisioning a Wix business and site, scaffolding from a template, and initializing local files.

Project commands

These commands operate on an existing Wix CLI project. Run them from your project directory.

CommandDescription
devStarts a local development environment that serves your project.
buildBuilds your project.
generateGenerates an extension for your project.
previewCreates an online preview of your built project.
releaseStarts a process that guides you through releasing your project.
connectConnects your project to Wix Vibe for AI-powered visual editing.
env pullPulls all your environment variables from Wix's servers and merges them into the .env.local file.
env setSets an environment variable on Wix's servers.
env removeRemoves an environment variable from Wix's servers.
translation pullPulls the translations from the Multilingual dashboard.
translation pushUploads translation keys to the Multilingual dashboard.

Global commands

These commands work outside the context of a specific project.

CommandDescription
loginLogs in to your Wix account.
logoutLogs out of your Wix account.
skills addAdds Wix skills to your project.
skills updateUpdates Wix skills in your project to the latest version.
telemetryOpts in or out of sending anonymous usage information (telemetry) to Wix.
whoamiDisplays the email address of the logged-in Wix user.

Command syntax

Most Wix CLI commands follow this general syntax:

Copy

Where:

  • <command> is the primary action (for example, dev, build, release)
  • [subcommand] is an optional secondary action (for example, env set)
  • [flags] are optional parameters that modify the command's behavior

Project creation commands are an exception. They're provided by a separate package and use the following syntax:

Copy

The -- separator forwards everything after it to the @wix/create-new package instead of consuming the flags itself.

Did this help?