> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Build and Deploy

## Article: Build and Deploy a Project with the Wix CLI

## Article Link: https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/project-development/build-and-deploy.md

## Article Content:

# Build and Deploy an App with the Wix CLI

After developing and testing your Wix CLI app locally, you can take it to production. This article guides you through that process. You can also use [Wix Skills](https://dev.wix.com/docs/api-reference/articles/ai-tools/about-wix-skills.md) to implement the build and deploy process. For app testing guidelines, see [App Checks and Testing Guide](https://dev.wix.com/docs/build-apps/launch-your-app/app-distribution/app-checks-and-testing-guide.md).

For instructions on creating an app project, see [Quick Start an App](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/get-started/quick-start-a-wix-cli-app.md).

## Before you begin

Before getting started, make sure that you have [Node.js](https://nodejs.org/en/) (v24.22.1 or higher).

## Step 1 | Build the project

Run the [build](https://dev.wix.com/docs/wix-cli/cli-for-apps/command-reference/project-commands/build.md) command to build the assets for your project:

```bash
wix app build
```

The command writes the build output to the `dist/` folder. The `preview` and `release` commands upload this build output and don't rebuild your project, so run `wix app build` after every change before you create a preview or release a version.

## Step 2 (Optional) | Create preview URLs

A preview lets you test your app before you release it. Each preview stays as it was when you created it, so later changes to your project don't affect it. A preview doesn't create an app version.

To push your project to Wix's servers for hosting and create preview URLs, run the [preview](https://dev.wix.com/docs/wix-cli/cli-for-apps/command-reference/project-commands/preview.md) command:

```bash
wix app preview
```

The command prints **Site**, **Editor**, and **Dashboard** links. Each link opens an installation page where you select a development site and click **Install App**. The link installs the preview on that site, and then opens that site, its editor, or its dashboard. You can share the links with others.

## Step 3 | Release your project

To push your project to Wix's servers for hosting and releasing a version, run the [`release`](https://dev.wix.com/docs/wix-cli/cli-for-apps/command-reference/project-commands/release.md) command and follow the prompts.

> **Note**: A release can include at most 5,000 static files.

```bash
wix app release
```

The CLI guides you through the process of releasing a new [app version](https://dev.wix.com/docs/build-apps/manage-your-app/versioning/about-app-versioning.md):

1. The CLI uploads the build output in `dist/` to Wix's servers. If your project includes backend event extensions, the CLI shows a warning about them before it continues.
1. The CLI prompts for an optional comment that describes the changes in this version. The comment isn't shown to users. To skip this prompt, pass the comment with the `--comment` flag.
1. The CLI creates the version and prints its number, such as `1.0.0`, with links to next steps.

To choose whether the release is a major or minor version, use the `--version-type` flag with `major` or `minor`.

An app version allows you to publish an app to the [Wix App Market](https://dev.wix.com/docs/build-apps/launch-your-app/app-distribution/install-your-app-directly-on-sites.md) or install it on a site with a direct install URL. You can view [your app versions](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fversions-app) in the app dashboard.

Learn more about [app distribution](https://dev.wix.com/docs/build-apps/launch-your-app/app-distribution/about-app-distribution.md).

## Next steps
You now have a fully working app.

Use the following resources to continue building your app:

+ [Add extensions to your app](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/supported-extensions/about-extensions-in-the-wix-cli.md).
+ [Learn more about how to develop your app](https://dev.wix.com/docs/wix-cli/cli-for-apps/about-the-wix-cli-for-apps.md).
+ [Learn about the project structure](https://dev.wix.com/docs/wix-cli/cli-for-apps/project-structure/about-the-app-project-structure.md).