> 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: Import Changes to Your Site

## Article: Import Changes to Your Site

## Article Link: https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/import-changes-to-your-site.md

## Article Content:

# Import Changes to Your Site

<blockquote class="caution">

__Beta:__
[Exporting your site to code](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/about-exporting-your-site-to-code.md) is currently in beta. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.

</blockquote>

Import an [exported site](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/about-exporting-your-site-to-code.md) back into Studio Two to save the changes you made outside Wix. The import doesn't publish the site. You review the result in the editor and publish when you're ready.

<blockquote class="important">

**Important:**
The import replaces the site with the exported site's version. It deletes pages that aren't in the exported site, and it overwrites any changes made in Studio Two since you exported. For details, see [Import back into Studio Two](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/about-exporting-your-site-to-code.md#import-back-into-studio-two).

</blockquote>

## Before you begin

Make sure you have:

- An exported site with its packages installed, whose changes pass the [lint](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/edit-an-exported-site.md#check-your-changes). The exported site includes the Wix CLI and the site export commands. Make sure the CLI is [logged in](https://dev.wix.com/docs/wix-cli/cli/command-reference/global-commands/login.md) to your Wix account.
- No changes made to the site in Studio Two since you exported it, or you're ready to lose them.

## Import your changes

To import your changes:

1. In the root of the exported site, run:

   ```bash
   npx wix origami import-site
   ```

2. If the import stops because lint failed, fix the issues it lists and run the command again. To import anyway, run `npx wix origami import-site --ignore-validation`. If an import with this flag fails, the command doesn't explain why, so use it sparingly.
3. If the import lists images that aren't in Wix Media yet, enter `y` to upload them to the site's Media Manager. Images that aren't in Wix Media don't display on the imported site. These are usually images added from a URL or from a file on your computer.
4. Check the output. It shows how many pages the import added and deleted, and tells you where to restore the site revisions it saved.
5. Open the site in the Studio Two editor and review the changes. If you need to go back, restore a saved revision from the editor's Site History.
6. Publish the site from the editor when you're ready.
7. Before you make more changes, [export the site again](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/export-your-site-to-code.md#export-your-site) in the root of the exported site, so you work from the site's current version.

## See also

- [About Exporting Your Site to Code](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/about-exporting-your-site-to-code.md)
- [Export Your Site to Code](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/export-your-site-to-code.md)
- [Edit an Exported Site](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/edit-an-exported-site.md)
- [Host an Exported Site Outside Wix](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/host-an-exported-site-outside-wix.md)
- [`wix origami import-site`](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/import-commands/origami-import-site.md)
- [`wix origami upload-media`](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/import-commands/origami-upload-media.md)