> 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: origami import-site

## Article: origami import-site

## Article Link: https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/import-commands/origami-import-site.md

## Article Content:

# wix origami import-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>

Imports 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. The import replaces the site's pages, shared sections, menus, theme, and code with the exported site's versions, and deletes pages that aren't in the exported site. It doesn't ask before it makes these changes, and it doesn't publish the site. For more information, 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).

By default, the command imports the exported site in the current folder into the site that you exported from.

Before it imports, the command runs the exported site's `yarn lint` and `yarn tsc` scripts. If lint fails, or the command can't start Yarn, the command stops without importing and displays the output. If only the type check fails, the command displays a warning and imports the site. To import even when lint fails, use the `--ignore-validation` flag.

Before and after the import, the command saves a site revision. The command saves the first revision only if the import changes the site, and the second only if the import succeeds. If the command can't save a revision, it displays a warning and continues. To restore a revision, use the editor's Site History.

If the exported site has images that aren't in Wix Media yet, such as images added from a URL or from a file on your computer, the command lists them and offers to upload them to the site's Media Manager first. Images that aren't in Wix Media don't display on the imported site. With `--json` or in a non-interactive terminal, the command stops instead. To upload them separately, run [`wix origami upload-media`](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/import-commands/origami-upload-media.md).

> **Notes:**
>
> - This command is part of the `origami` flow. To use it, [add the flow](https://dev.wix.com/docs/wix-cli/cli/command-reference/global-commands/flows.md) to the CLI.
> - An exported site includes the Wix CLI and the `origami` flow, so in its root you can also run the command with `npx wix origami import-site`.

## Usage

```bash
wix origami import-site [flags]
```

## Flags

The following flags are available for the `wix origami import-site` command:

| Flag | Description |
| ---- | ----------- |
| `--site <site>` | The name or ID of the site to import into. Defaults to the site that you exported from. |
| `-d, --dir <path>` | The folder of the exported site. Defaults to the current folder. |
| `--ignore-validation` | Imports the site even when lint fails. When the import then fails, the command doesn't explain why, so use this flag sparingly. |
| `--force-code` | Imports the site code even when it matches the site, to complete an import that left it locked. |
| `--verbose` | Displays diagnostic details during the import. |
| `--json` | Outputs the result in JSON format. |