> 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: About Backend Extensions

## Article: About Wix CLI Backend Extensions

## Article Link: https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/backend/about-backend-extensions.md

## Article Content:

# About Wix CLI Backend Extensions

The Wix CLI allows you to add [backend extensions](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/about-backend-extensions.md) to your project.

The following backend extensions are available in the CLI:

- [Service plugin extensions](#service-plugin-extensions)
- [Event extensions](#event-extensions)
- [Data collections extensions](#data-collections-extensions)
- [App Tools extensions](#app-tools-extensions)
- [App Skills extensions](#app-skills-extensions)

You can add these extensions using the [generate](https://dev.wix.com/docs/wix-cli/cli-for-headless/command-reference/project-commands/generate.md) command.

Backend extensions built with the CLI have execution limits, rate limits, and a time limit for backend functionality in previews. Read more about [limits](#limits).

<!-- not currently supported
- **Logging functionality:** You can use the CLI to view logs from the backend of any version of your project. Read more about [logging](#logging).
- **Limits:** Backend extensions have execution limits, rate limits, and a time limit for backend functionality in previews. Read more about [limits](#limits). -->

## Service plugin extensions

Service plugin extensions are a set of APIs defined by Wix that you can use to enable your project to inject custom logic into existing flows or to introduce entirely new flows.

For example, you can add an [Additional Fees Service Plugin](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/additional-fees/additional-fees-service-plugin/introduction?apiView=SDK.md) to add custom charges and fees to carts and checkouts based on business-specific calculations and logic.

You can implement service plugin extensions in your project using the CLI. Read more about [service plugin extensions](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/backend/service-plugins/add-service-plugin-extensions-with-the-wix-cli.md).

## Event extensions

Events are triggered when specific conditions on your project are met. These are conditions on your project's site.

For example, an event might be triggered when a [booking is confirmed](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/booking-confirmed?apiView=SDK.md).

Your project can respond to these events using event extensions created in the CLI. Events in the CLI are built on JavaScript SDK webhooks, and event extensions subscribe your project to these webhooks behind the scenes. Read more about [event extensions](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/backend/events/add-event-extensions-with-the-wix-cli.md).

## Data collections extensions

Data collections extensions let your project automatically create CMS data collections in your project's site. You define each collection's schema, permissions, and optional initial data in your project files. When the extension is released, the collections are created in the site's CMS with the configuration you specified.

Read more about [data collections extensions](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/backend/data-collections/add-a-data-collections-extension-with-the-wix-cli.md).

## App Tools extensions

App Tools extensions let your project expose custom tools that [Aria](https://dev.wix.com/docs/overview/ai-the-wix-platform/about-aria.md) can discover and run on behalf of Wix users in your project's site dashboard. You declare each tool with a name, a description, and optional request and response schemas. Wix calls your [Tools Provider](https://dev.wix.com/docs/api-reference/app-management/app-tools/tools-provider-v1/introduction.md) service plugin when Aria selects a tool.

For example, a shipping project can declare a package-tracking tool. When a Wix user asks Aria where their order is, Aria calls the tool and uses the response to answer the question.

Read more about [App Tools extensions](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/app-tools/about-app-tools-extensions.md).

## App Skills extensions

[App Skills](https://dev.wix.com/docs/overview/extensions-framework/backend-extensions/app-skills.md) extensions let your project declare skills for [Aria](https://dev.wix.com/docs/overview/ai-the-wix-platform/about-aria.md), the Wix AI assistant. A skill is a named set of reference documentation that guides Aria through a task. In CLI projects, a skill can also list [App Tools](https://dev.wix.com/docs/overview/extensions-framework/backend-extensions/app-tools.md) that Aria may need while performing a task. 

Read more about [App Skills extensions](https://dev.wix.com/docs/overview/extensions-framework/backend-extensions/app-skills.md).

## Limits

Backend extensions built with the CLI have execution limits, rate limits, and a time limit for backend functionality in previews.

<blockquote class="important">

**Important:**
Limits are subject to change. We'll notify you of any upcoming changes through the CLI and [Discord](https://discord.gg/aN9ubnrs2D), and note them here in the documentation.

</blockquote> 

### Execution rate limits

- **1000 CPU MS per request:** Backend requests taking longer than 1000 CPU MS to complete are terminated.
- **20 sub-requests:** Sub-requests are requests made from your backend extensions, such as calls to Wix APIs, in response to a request. Your project can make up to 20 sub-requests in response to each request. Sub-requests beyond the 20th aren't made.

### Request rate limit

- **1000 requests per second:** This is the limit for the total number of backend requests from your project. Requests beyond this are ignored.

### Backend functionality for previews

Previews generated by `npm run preview` last indefinitely. However, any backend extensions in these previews stop functioning after 3 days.

## Backend APIs

In the Wix CLI, backend APIs are built with [HTTP endpoints](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/backend/http-endpoints/about-http-endpoints.md). Learn how to [add HTTP endpoints to your project](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/backend/http-endpoints/add-http-endpoints-to-your-project.md).

## See also

- [About Extensions in the Wix CLI](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/about-extensions.md)
- [About the extensions.ts File](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/extensions/about-the-extensions-ts-file.md)