# snizu theme init

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

## Usage [#usage]

```sh title="Usage"
snizu theme init [dir] [--from <theme>]
```

## Flags [#flags]

<Fields>
<Field name="[dir]" type="path">
Where to write it: an empty or new folder. `my-theme` by default.
</Field>

<Field name="--from" type="handle">
The snizu theme to start from, by its handle in the Theme Store: `nour` by default, or any other, such as `libas` or `souq`. Which themes there are is the API's to say, so a new one works without a new CLI.
</Field>
</Fields>

## What it writes [#what-it-writes]

- Every file of the theme: `theme.json`, `layout/`, `groups/`, `templates/`, `sections/`, `snippets/`, `locales/` and `assets/`, with its fonts and images downloaded.
- Its demo store, `demo/store.json` and its photos, so the theme comes back whole and a development store can be filled from it.
- `AGENTS.md`: how a snizu theme works and the rules it's checked against, for coding agents. It never goes into the package.
- `.snizu/objects.json`: every object each page type reads, every filter, test and function templates can call, the setting types and the limits.

## Examples [#examples]

```shellsession title="Terminal"
$ snizu theme init nakhla --from nour
✓ Copied nour 0.1.0: 152 files and 27 assets.
Rename it in theme.json, then run snizu theme push nakhla.
Preview it on a development store before you submit it.
AGENTS.md tells coding agents how the theme works; it stays out of the package.
```

Then give it your name in `theme.json`, [push it once](/docs/cli/theme/push) to link the folder to a theme of yours, and [preview it](/docs/cli/theme/dev) on a development store.