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
snizu app init [dir] [--app <handle>]
snizu app init [dir] --name <name> --handle <handle> [--category <category>] [--distribution <distribution>]Flags
[dir]pathThe app's folder. The current one by default. A folder that already hassnizu.app.jsonis refused: change the file instead.--apphandleLink to an app your organization has, by its handle or ID. It takes the app's newest manifest.--nametextRegister a new app with this name. Asked for at a terminal.--handlehandleThe new app's handle: lower case and dashes, and permanent. Made from the name when you don't say.--categorycategoryWhere it's listed:payments,shipping,marketing,sales,customer_support,inventory,analytics,finance,productivity(the default) ordeveloper_tools.--distributionpublicWho can install it:public(the default),unlistedorcustom.
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.2was released, so the folder deploys1.4.3.
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_idstringThe app this folder deploys. Leave it out and the app is your organization's app with thishandle, so one file can deploy to every server your organization is on.handlestringrequiredThe app's handle.versionMAJOR.MINOR.PATCHrequiredThe versionsnizu app deploymakes or updates.release_notesstringWhat changed, for merchants.release_notes_arholds the Arabic.manifestobjectrequiredScopes and why it needs each, the embedded page'sadmin_url, webhooks, settings, checkout blocks, and the API version the app is written for.
Examples
$ 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:
$ snizu app init --app gift-wrap
✓ Wrote snizu.app.json for gift-wrap.Was this page helpful?
Updated 25 Nov 2026