Skip to content

snizu theme init

Start a theme from the source of one of snizu's own themes, with notes for coding agents and a local description of everything templates can use.

Node 22+1 min read

Usage

Usage
snizu theme init [dir] [--from <theme>]

Flags

  • [dir]path
    Where to write it: an empty or new folder. my-theme by default.
  • --fromhandle
    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.

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

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 to link the folder to a theme of yours, and preview it on a development store.

Was this page helpful?

Updated 25 Nov 2026