Beta: Exporting your site to code 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.
With the origami flow of the Wix CLI, you can export a Studio Two site to code 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.
The commands are available once you add the flow with wix flows add origami. 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.
These commands create an exported site: a local folder that holds a site as code.
| Command | Description |
|---|---|
| origami create-site | Creates a blank Studio Two site and exports it to a local folder as code. |
| origami export-site | Exports a Studio Two site to a local folder as code. |
These commands update a site from an exported site.
| Command | Description |
|---|---|
| origami upload-media | Uploads images that an exported site adds from a URL or a local file to the site's Media Manager. |
| origami import-site | Imports an exported site back into Studio Two. |
Origami commands follow this general form:
Where:
<command> is the action (for example, export-site, import-site)[flags] are parameters that modify the command's behaviorAngle brackets mark a required part, and square brackets mark an optional part. Don't type the brackets.
Last updated: 10 November 2026