> 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: Integrate the CLI into CI/CD Workflows

## Article: CD Workflows

## Article Link: https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/development/integrate-the-cli-into-ci-cd-workflows.md

## Article Content:

# Integrate the CLI into CI/CD Workflows

The Wix CLI can run in any continuous integration and continuous delivery (CI/CD) pipeline, so you can automate tasks like testing and building your headless project on every push or pull request. Because the CLI is a standard command-line tool, it's pipeline-agnostic — the example below uses [GitHub Actions](https://github.com/features/actions) because it's widely used, but the same approach applies to GitLab CI, CircleCI, Jenkins, and other providers.

A common setup is to run your [unit tests](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/development/write-unit-tests.md) automatically on every pull request, so regressions are caught before they're merged.

## Example: run unit tests on every pull request

This GitHub Actions workflow installs your dependencies and runs your unit test script whenever a pull request is opened or updated. Add it to your repository at `.github/workflows/ci.yml`:

```yaml
name: CI PR
on:
  pull_request:
    branches:
      - '*'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22.x
          cache: 'npm'

      - name: Install
        run: npm install

      - name: Unit tests
        run: npm run test:unit
```

Replace `test:unit` with the name of the test script defined in your `package.json`.

## Run other CLI commands

The same approach works for any CLI command. For example, you can add a step that runs [`wix build`](https://dev.wix.com/docs/wix-cli/cli-for-headless/command-reference/project-commands/build.md) to confirm your project compiles as part of your checks.

## See also

- [Write Unit Tests for a Wix CLI Project](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/development/write-unit-tests.md)
- [Build and Deploy with the CLI](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/development/build-and-deploy-with-the-cli.md)
- [Wix CLI Command Reference](https://dev.wix.com/docs/wix-cli/cli-for-headless/command-reference/introduction.md)