> 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`).
> - 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 upload-media

## Article: origami upload-media

## Article Link: https://dev.wix.com/docs/wix-cli/command-reference/origami-commands/origami-upload-media.md

## Article Content:

# wix origami upload-media

<blockquote class="caution">

__Alpha:__
[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 alpha. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.

</blockquote>

Uploads the images that an [exported site](https://dev.wix.com/docs/studio-two/code-your-site/export-your-site/about-exporting-your-site-to-code.md) adds from a URL or from a file on your computer to the site's Media Manager. The command then updates the exported site's files to use the uploaded images.

Images that aren't in Wix Media don't display after you [import the site](https://dev.wix.com/docs/wix-cli/command-reference/origami-commands/origami-import-site.md). A coding agent runs this command after it adds images, and the import offers to upload any that are left.

> **Note:** This command is part of the `origami` flow. To use it, [add the flow](https://dev.wix.com/docs/wix-cli/command-reference/global-commands/flows.md) to the CLI.

## Usage

```bash
wix origami upload-media [flags]
```

## Flags

The following flags are available for the `wix origami upload-media` command:

| Flag | Description |
| ---- | ----------- |
| `--site <site>` | The name or ID of the site to upload the images to. Defaults to the site that you exported from. |
| `-d, --dir <path>` | The folder of the exported site. Defaults to the current folder. |
| `--json` | Outputs the result in JSON format. |