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.
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_TOKENworks too.--apiurlWhere the API answers, kept with the token.SNIZU_API_URL, then what was saved before, thenhttps://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:deployRegister apps, make their versions and run a draft on a store:snizu app init,app deploy,app dev.themes:pushStart, preview, check and push themes:snizu theme init,theme dev,theme check --server,theme push.logs:readRead your apps' webhook deliveries:snizu app logs.stores:createOpen and find development stores, and put functions on them:snizu store create,function deploy, and the storeapp devandtheme devrun 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
$ 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.jsonWithout a terminal, pass the token:
$ 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.
$ snizu logout
✓ Signed out. The token still works until you revoke it in the console.Was this page helpful?
Updated 25 Nov 2026