# snizu app deploy

Source: https://snizu.dev/docs/cli/app/deploy

## Usage [#usage]

```sh title="Usage"
snizu app deploy [dir] [--notes "…"] [--submit]
```

## Flags [#flags]

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

<Field name="--notes" type="text">
The release notes for this version. `release_notes` in `snizu.app.json` otherwise.
</Field>

<Field name="--submit" type="flag">
Send the draft to review once it's saved.
</Field>
</Fields>

## Versions [#versions]

`version` in `snizu.app.json` is `MAJOR.MINOR.PATCH`. Deploying a number you haven't used makes a draft with it; deploying it again updates that draft, so you iterate without new numbers. A number that went to review or was released can't change: the command stops and names the next number to set.

The server checks the manifest. When it refuses, each problem prints on its own line as `field: message`, and nothing changes until you deploy again.

## Examples [#examples]

```shellsession title="Terminal"
$ snizu app deploy
✓ Made gift-wrap 0.1.0 as a draft.
Try it with `snizu app dev --store <development store>`, then run `snizu app deploy --submit`.
$ snizu app deploy --submit --notes "Wrap per item"
✓ Updated gift-wrap 0.1.0 as a draft.
✓ 0.1.0 is in review. You'll hear when it's decided.
```

An app made for one store (`custom`) isn't reviewed: `--submit` approves the draft and releases it at once, and says "0.1.1 is approved and ready to release."

```shellsession title="Terminal"
$ snizu app deploy
✗ 0.1.0 is already in review. Set "version" to 0.1.1 in snizu.app.json.
Usage: snizu app deploy [dir] [--notes …] [--submit]
```