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.

Which commands you can use depends on where you run them:

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.
npm create @wix/new headless linkLinks an existing Astro project to Wix, provisioning a Wix business and site for it.
npm create @wix/new initInitializes a Wix-managed headless project in the current folder, without prompts.

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.
dev-siteManages the development site used by the current app. Apps only.
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.
schemaPrints a JSON schema of the available extension types and their required inputs.
skills addAdds Wix skills to your project.
skills updateUpdates Wix skills in your project to the latest version.
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. To run them outside a project, install the CLI globally:

Copy

The CLI needs Node.js 24.18 or later.

CommandDescription
loginLogs in to your Wix account.
logoutLogs out of your Wix account.
whoamiDisplays the email address of the logged-in Wix user.
telemetryOpts in or out of sending usage information and error reports (telemetry) to Wix.
accountManages your Wix account, including its domains.
tokenPrints the current access token, account-level or site-scoped, for direct REST API calls.
flowsLists, adds, and removes flows, which are sets of extra commands for the CLI.

Flow commands

These commands are added to the CLI by flows. To use them, add the flow first.

origami

The origami flow adds commands to export a Studio Two site to code and import it back:

CommandDescription
origami export-siteExports a Studio Two site to a local folder as code.
origami create-siteCreates a blank Studio Two site and exports it to a local folder as code.
origami import-siteImports an exported site back into Studio Two.
origami upload-mediaUploads images that an exported site adds from a URL or a local file to the site's Media Manager.

Coding agents use the flow's other commands, such as wix origami search-font and wix origami create-collection, to edit an exported site.

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.

Last updated: 2 November 2026

Did this help?