> To build a Wix site agentically, follow https://www.wix.com/headless/skill.md
> 
> 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: Introduction

## Article: Introduction

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

## Article Content:

# Wix CLI for Origami Command Reference

<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>

With the `origami` flow of the Wix CLI, you can [export a Studio Two site to code](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/about-exporting-your-site-to-code.md) and import your changes back. This reference documents the flow's commands.

> **Note:** Commands that you use alongside the flow but aren't part of it, such as logging in, are documented in the [CLI Command Reference](https://dev.wix.com/docs/wix-cli/cli/command-reference/introduction.md).

The commands are available once you add the flow with [`wix flows add origami`](https://dev.wix.com/docs/wix-cli/cli/command-reference/global-commands/flows.md#add). The CLI installs flows in your user folder, so you can run the commands from any folder. In the root of an exported site, the commands default to that site and that folder.

The sections of this article are organized by command type. All Origami commands share the syntax described at the end. Every command accepts `-h` and `--help`, which print the command's usage and flags.

## Export commands

These commands create an exported site: a local folder that holds a site as code.

| Command | Description |
|---------|-------------|
| [origami create-site](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/export-commands/origami-create-site.md) | Creates a blank Studio Two site and exports it to a local folder as code. |
| [origami export-site](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/export-commands/origami-export-site.md) | Exports a Studio Two site to a local folder as code. |

## Import commands

These commands update a site from an exported site.

| Command | Description |
|---------|-------------|
| [origami upload-media](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/import-commands/origami-upload-media.md) | Uploads images that an exported site adds from a URL or a local file to the site's Media Manager. |
| [origami import-site](https://dev.wix.com/docs/wix-cli/cli-for-origami/command-reference/import-commands/origami-import-site.md) | Imports an exported site back into Studio Two. |

## Command syntax

Origami commands follow this general form:

```bash
wix origami <command> [flags]
```

Where:
- `<command>` is the action (for example, `export-site`, `import-site`)
- `[flags]` are parameters that modify the command's behavior

Angle brackets mark a required part, and square brackets mark an optional part. Don't type the brackets.