Install the snizu CLI
One command for apps, themes, functions and development stores. Install it once, sign in with a Partner API token, and it works the same way in CI.
Install it
The CLI is @snizu/cli on npm, and it needs Node.js 22 or newer. Install it globally and the snizu command is on your path:
$ npm i -g @snizu/cli
$ snizu --version
2.0.0To run it without installing, use the snizu package: npx snizu theme check runs the CLI at the same version as the snizu package you asked for, so npx snizu@2.0.0 is always CLI 2.0.0.
The theme checker comes compiled to WebAssembly inside the package, so checking a theme needs nothing else. Building a function needs its language's own tools: Rust with the wasm32-wasip1 target, or Javy for JavaScript.
Sign in
Make a Partner API token in the developer console under Settings → API tokens, then run snizu login. The token decides what the CLI can do for your organization: deploy apps, push themes, read logs, create development stores.
In CI
There's nothing to sign in to. Set the token in the environment and every command uses it:
SNIZU_TOKENsnz_pat_…A Partner API token. It wins over the tokensnizu loginsaved.SNIZU_API_URLurlAnother API to call.https://api.snizu.comby default.CIany valueNever ask questions. Commands that would ask take flags instead, and say which when one is missing.NO_COLORany valuePrint without colours. Output that isn't a terminal never has them.
The CLI only asks questions when someone is at a terminal. In a pipe or with CI set, a command that needs an answer stops and names the flag to pass, such as --theme for snizu theme push.
Every command
snizu login--token --apiSign in with a Partner API token. Moresnizu logoutForget the saved token. It keeps working until you revoke it in the console.snizu whoami--jsonThe organization and what the token can do. Moresnizu app create<dir>Write a small working app. Moresnizu app init[dir]Link a folder to an app, or register one. Moresnizu app dev--storeRun the app's draft on a development store as you save. Moresnizu app deploy--submitMake a version a draft, or send it to review. Moresnizu app logs--followYour app's webhook deliveries. Moresnizu theme init--fromStart a theme from one of snizu's own. Moresnizu theme dev--storePreview a theme on a development store as you save. Moresnizu theme check--jsonThe platform's checks, on this machine. Moresnizu theme push--submitMake a draft version of your theme. Moresnizu function init--target --langWrite a function that works. Moresnizu function build[dir]Compile it, and check the size limit. Moresnizu function run--inputRun it here on a sample. Moresnizu function deploy--storePut it on a development store. Moresnizu store create<name>Open a development store. More
Help and exit codes
snizu help lists every command with a line about it, and snizu help theme push (or snizu theme push --help) shows one command's usage. -h is --help, and -v or -V is --version.
A flag takes its value as --store siwa-grove or --store=siwa-grove, and -- ends the flags.
0It worked.1It didn't: the API refused, the network failed, or a check found problems. The reason is on standard error.2The command was typed wrong. It says what's missing and prints the command's usage.
What it keeps, and where
snizu login saves the token in credentials.json, readable only by you where the system allows it:
%APPDATA%\snizuon Windows.$XDG_CONFIG_HOME/snizu, or~/.config/snizu, everywhere else.
Projects keep small files the CLI reads: snizu.app.json (which app a folder deploys), snizu.theme.json (which theme a folder pushes to) and snizu.function.json (a function's target and language). Commit the first and third. snizu.theme.json is yours to commit too; it never goes into the theme's package.
Every request names the CLI in its user agent, as snizu-cli/2.0.0 node/22.12.0 (linux), so a problem can be traced to a version.
Was this page helpful?
Updated 25 Nov 2026