> 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: Create a Test Site in Studio Two

## Article: Create a Test Site in Studio Two

## Article Link: https://dev.wix.com/docs/studio-two/test-your-site/preview-and-test-sites/create-a-test-site-in-studio-two.md

## Article Content:

# Create a Test Site in Studio Two

Create a test site to check your code the way it runs on the live site before you publish it, or to share a version of your site with someone. A test site has its own URL and runs your code as it was when you created the test site, except for some service plugins. Creating it doesn't change the live site's code. For how a test site differs from Preview and the live site, see [About Preview and Test Sites in Studio Two](https://dev.wix.com/docs/studio-two/test-your-site/about-preview-and-test-sites-in-studio-two.md).

A test site shares your site's data with the live site. When code on the test site changes data, such as by adding an item to a CMS collection, the change appears on the live site too.

## Before you begin

You need permission to publish your site. Without it, **Preview as Test Site** isn't available.

## Create the test site

To create a test site:

1. In the editor, click the arrow next to **Preview** and then select **Preview as Test Site**.
2. If a dialog about test sites appears, click **Create Test Site**.

The test site opens in a new tab, at your site's URL with `?rc=test-site` added. Anyone who opens that link sees the test site. If your site already has a test site, the new one replaces it.

To open the test site on a phone, select **Preview on a mobile device** instead of **Preview as Test Site**. That option creates the same test site and shows a QR code and the link.

Publishing your site doesn't change the test site. To update it with your current code, follow the same steps again.

## Delete the test site

To delete the test site:

1. In the editor, open the **Studio Two** menu at the top left and then select **Site > Release Manager**.
2. In the **Test Site** row, open the menu and then select **Discard**.

## See also

- [About Preview and Test Sites in Studio Two](https://dev.wix.com/docs/studio-two/test-your-site/about-preview-and-test-sites-in-studio-two.md)
- [About Debugging Your Code in Studio Two](https://dev.wix.com/docs/studio-two/test-your-site/about-debugging-your-code-in-studio-two.md)
- [Test Sites: Creating a Test Site](https://support.wix.com/en/article/test-sites-creating-a-test-site)