The Wix CLI is the command-line tool for creating, developing, and deploying both Wix apps and Wix-managed headless projects.
Note: For Wix site development, see Git Integration & Wix CLI for Sites instead.
To get started:
The CLI generates a complete project structure and handles initial setup and configuration. It also provides commands to generate extensions and manage your project throughout development. New CLI projects include Wix skills, so AI tools can perform CLI tasks for you. This lets you focus on building the unique features of your project.
Note: Headless projects created with the CLI are Wix-managed headless projects. This is the recommended path for new headless projects. For background on the headless development paths, see About Headless Development Paths.
The unified Wix CLI replaces 2 deprecated tools:
Both legacy CLIs no longer receive updates or feature additions. Use the legacy references only if you're maintaining an existing project.
The CLI uses a standardized project structure based on the Astro web framework. Astro is a JavaScript-based web framework designed for building fast, content-focused websites. The CLI also supports backend development with HTTP endpoints.
The Wix CLI is built on Astro because it offers several key advantages for modern web development:
The CLI allows you to:
The CLI also provides full TypeScript support with IntelliSense, offering autocomplete suggestions and validation as you code.
New CLI projects include Wix skills by default. Wix skills enhance your AI workflow by providing instructions and context that supported AI tools use to develop, deploy, and validate a CLI project.
The CLI generates the complete project structure needed for Wix app development. You can add extensions built with TypeScript, React components, and the Wix Design System, providing a native Wix look and feel.
When developing apps, you can test your functionality using development sites. These are premium Wix sites that you can use for app testing. You can maintain up to 5 development sites simultaneously for testing different aspects of your app.
The CLI streamlines Wix Headless project development, so you can work directly with Wix's business solutions and dashboard, and build a custom frontend using any technology supported by Astro.
When you create a headless project, the CLI generates the code for an Astro site so you can begin developing immediately. You can also open and develop projects you started with Wix Vibe, the AI-driven UI for Wix-managed Headless, locally with the CLI.
When you create a headless project, the CLI sets up a private app that allows you to add features to your project through extensions. The app also acts as the OAuth app that handles authentication for your project's frontend. This private app can't be shared with others, it's only for use in your headless project.
You can use a custom domain for headless frontends to provide a branded experience for users.
The CLI uses a standardized project structure based on Astro, while giving you the flexibility to organize your extensions into custom folders within the src/ directory. This allows you to structure your code in a way that works best for your project.
The CLI provides built-in support for environment variables, allowing you to store configuration values and secrets outside of your code. You can define type-safe environment variables with different security levels, which makes your applications more secure and portable.
The CLI provides a serverless hosting solution where scaling, resource allocation, and maintenance are fully managed, so you don't have to worry about infrastructure.
The main features include:
Wix developer documentation is available in machine-readable formats for use with AI coding assistants and LLMs:
.md to any documentation page URL to retrieve a Markdown version of that page.