Skip to content

snizu app init

Link a folder to one of your organization's apps, or register a new one. It writes snizu.app.json, which says which app the folder deploys, the version to make and its manifest.

Node 22+2 min read

Usage

Usage
snizu app init [dir] [--app <handle>]
snizu app init [dir] --name <name> --handle <handle> [--category <category>] [--distribution <distribution>]

Flags

  • [dir]path
    The app's folder. The current one by default. A folder that already has snizu.app.json is refused: change the file instead.
  • --apphandle
    Link to an app your organization has, by its handle or ID. It takes the app's newest manifest.
  • --nametext
    Register a new app with this name. Asked for at a terminal.
  • --handlehandle
    The new app's handle: lower case and dashes, and permanent. Made from the name when you don't say.
  • --categorycategory
    Where it's listed: payments, shipping, marketing, sales, customer_support, inventory, analytics, finance, productivity (the default) or developer_tools.
  • --distributionpublic
    Who can install it: public (the default), unlisted or custom.

In CI, pass --app, or --name and the rest: nobody is there to answer.

The version it starts at

  • A new app starts at 0.1.0.
  • A linked app whose newest version is a draft keeps that draft's number, so the next deploy updates it.
  • Otherwise it's the next patch: 1.4.2 was released, so the folder deploys 1.4.3.

snizu.app.json

snizu.app.json
{
  "app_id": "app_01k9a4n7x2c8v5m3q0d6t1w9hz",
  "handle": "gift-wrap",
  "version": "0.1.0",
  "release_notes": "",
  "manifest": {
    "scopes": [],
    "access_reasons": [],
    "admin_url": null,
    "webhooks": [],
    "settings": [],
    "api_version": "2026-10"
  }
}
  • app_idstring
    The app this folder deploys. Leave it out and the app is your organization's app with this handle, so one file can deploy to every server your organization is on.
  • handlestringrequired
    The app's handle.
  • versionMAJOR.MINOR.PATCHrequired
    The version snizu app deploy makes or updates.
  • release_notesstring
    What changed, for merchants. release_notes_ar holds the Arabic.
  • manifestobjectrequired
    Scopes and why it needs each, the embedded page's admin_url, webhooks, settings, checkout blocks, and the API version the app is written for.

Examples

Terminal
$ snizu app init --name "Gift wrap" --category sales
Registered gift-wrap in Nakhla Studio. Its client secret is in the console.
✓ Wrote snizu.app.json for gift-wrap.
Edit the manifest in it, then run snizu app deploy.

Link a folder to an app you already have:

Terminal
$ snizu app init --app gift-wrap
✓ Wrote snizu.app.json for gift-wrap.

Was this page helpful?

Updated 25 Nov 2026