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.

Command overview

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.
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.
loginLogs in to your Wix account.
logoutLogs out of your Wix account.
telemetryOpts in or out of sending anonymous usage information (telemetry) to Wix.
whoamiDisplays the email address of the logged-in Wix user.

Command syntax

All 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
Did this help?