# snizu theme push

Source: https://snizu.dev/docs/cli/theme/push

## Usage [#usage]

```sh title="Usage"
snizu theme push [dir] [--theme <handle>] [--for <store>] [--notes "…"] [--submit]
```

## Flags [#flags]

<Fields>
<Field name="[dir]" type="path">
The theme's folder, with its `theme.json`. The current one by default.
</Field>

<Field name="--theme" type="handle">
Which of your organization's themes to push to. The folder remembers it in `snizu.theme.json` after the first push. Needed in CI for the first.
</Field>

<Field name="--for" type="<store>">
When the first push makes a new theme: make it for this one store only, by its address. A client's store that gave you access to its theme code, or one of your development stores.
</Field>

<Field name="--notes" type="text">
This version's release notes.
</Field>

<Field name="--submit" type="flag">
Send the draft to review. For a theme made for one store, release it to that store at once.
</Field>
</Fields>

## The first push [#the-first-push]

Without `--theme` or a `snizu.theme.json`, the CLI lists your organization's themes and asks which to push to, or makes a new one: its name, its permanent handle, and who it's for, every store in the Theme Store or one store. It remembers the answer in `snizu.theme.json`.

## What goes up [#what-goes-up]

The folder is packed without dotfiles, `node_modules`, `snizu.theme.json` and the notes (`AGENTS.md`, `README.md`, `DESIGN.md`, `CHANGELOG.md`, `LICENSE`). It goes straight to our files edge, in one request up to 16 MB and in 8 MB parts beyond, and is scanned for malware before the version is made; the CLI waits up to two minutes for the scan.

The version is `version` in `theme.json`. Pushing a number that's a draft replaces that draft; a number that went to review or was released is refused, so raise it.

## Examples [#examples]

```shellsession title="Terminal"
$ snizu theme push --theme nakhla
Remembered nakhla in snizu.theme.json.
Packed 179 files (2.4 MB).
✓ Pushed nakhla 0.1.0 as a draft.
Preview it in the console, then run `snizu theme push --submit` to send it to review.
$ snizu theme push --submit --notes "Ramadan banner"
Packed 179 files (2.4 MB).
Replacing the draft 0.1.0.
✓ Pushed nakhla 0.1.0 as a draft.
✓ 0.1.0 is in review.
```

A theme made for one store releases at once:

```shellsession title="Terminal"
$ snizu theme push --submit
✓ Pushed dukkan-ward 1.2.0 as a draft.
✓ Released 1.2.0 to Dukkan Ward. It shows there as an update.
```

Before pushing, [`snizu theme check`](/docs/cli/theme/check) gives the same verdict on your machine.