Skip to content

snizu login

Sign in with a Partner API token from the developer console. The CLI checks it, then keeps it on this machine for every command after.

Node 22+2 min read

Usage

Usage
snizu login [--token snz_pat_…] [--api <url>]

Flags

  • --tokensnz_pat_…
    The Partner API token. Without it, the CLI asks for one and doesn't show what you type. SNIZU_TOKEN works too.
  • --apiurl
    Where the API answers, kept with the token. SNIZU_API_URL, then what was saved before, then https://api.snizu.com.

The token

Make one in the developer console under Settings → API tokens. It starts with snz_pat_ and belongs to your organization, not to you, so it keeps working when someone leaves. What it may do is chosen when you make it:

  • apps:deploy
    Register apps, make their versions and run a draft on a store: snizu app init, app deploy, app dev.
  • themes:push
    Start, preview, check and push themes: snizu theme init, theme dev, theme check --server, theme push.
  • logs:read
    Read your apps' webhook deliveries: snizu app logs.
  • stores:create
    Open and find development stores, and put functions on them: snizu store create, function deploy, and the store app dev and theme dev run on.

A command that works on a development store needs both of its permissions: snizu theme dev needs themes:push and stores:create.

snizu login asks the API whose token it is before saving it, so a typo fails here rather than in the next command.

Examples

Terminal
$ snizu login
Make a token in the developer console: Settings → API tokens.
Partner API token:
✓ Signed in to Nakhla Studio.
This token can deploy apps, push themes, read logs, create development stores.
Saved in /home/salma/.config/snizu/credentials.json

Without a terminal, pass the token:

Terminal
$ snizu login --token "$SNIZU_TOKEN"
✓ Signed in to Nakhla Studio.

Sign out

snizu logout deletes the saved token from this machine. The token itself still works until you revoke it in the console.

Terminal
$ snizu logout
✓ Signed out. The token still works until you revoke it in the console.

Was this page helpful?

Updated 25 Nov 2026