Skip to content

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.

Node 22+4 min read

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:

Terminal
$ npm i -g @snizu/cli
$ snizu --version
2.0.0

To 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 token snizu login saved.
  • SNIZU_API_URLurl
    Another API to call. https://api.snizu.com by default.
  • CIany value
    Never ask questions. Commands that would ask take flags instead, and say which when one is missing.
  • NO_COLORany value
    Print 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 --api
    Sign in with a Partner API token. More
  • snizu logout
    Forget the saved token. It keeps working until you revoke it in the console.
  • snizu whoami--json
    The organization and what the token can do. More
  • snizu app create<dir>
    Write a small working app. More
  • snizu app init[dir]
    Link a folder to an app, or register one. More
  • snizu app dev--store
    Run the app's draft on a development store as you save. More
  • snizu app deploy--submit
    Make a version a draft, or send it to review. More
  • snizu app logs--follow
    Your app's webhook deliveries. More
  • snizu theme init--from
    Start a theme from one of snizu's own. More
  • snizu theme dev--store
    Preview a theme on a development store as you save. More
  • snizu theme check--json
    The platform's checks, on this machine. More
  • snizu theme push--submit
    Make a draft version of your theme. More
  • snizu function init--target --lang
    Write a function that works. More
  • snizu function build[dir]
    Compile it, and check the size limit. More
  • snizu function run--input
    Run it here on a sample. More
  • snizu function deploy--store
    Put it on a development store. More
  • snizu 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.

  • 0
    It worked.
  • 1
    It didn't: the API refused, the network failed, or a check found problems. The reason is on standard error.
  • 2
    The 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%\snizu on 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