Authentication
Use vizzly login for local account commands. Use a project token for commands that create or update cloud resources.
Local development
Run:
vizzly loginThe CLI starts a device flow, opens your browser, and stores your auth data in ~/.vizzly/config.json.
When you’re signed in, commands like whoami, orgs, and projects use your user token automatically.
For project uploads from your local checkout, link the checkout to a Vizzly project:
vizzly project link your-org/your-projectThat creates a project-scoped credential for run, upload, preview, and finalize.
Check your session
vizzly whoamivizzly orgsvizzly projectswhoami --json is the easiest way to inspect the current auth state in scripts.
Sign out
vizzly logoutCI and automation
Use a project token from Vizzly and pass it through VIZZLY_TOKEN.
export VIZZLY_TOKEN=vzt_your_project_tokenvizzly run "npm test" --waitYou can also override per command:
vizzly run "npm test" --token vzt_other_tokenAuth by command family
There is no single global auth order across every command.
run,upload,preview, andfinalizeuse a project token from--token,VIZZLY_TOKEN, orvizzly project link.whoami,orgs, andprojectsuse your logged-in user token first.builds,status, and cloudcontextcommands can use either auth path.comparisonsuses a project credential. For account-authenticated comparison investigation, usevizzly context comparison.
Custom home directory
If you need to isolate CLI state, set VIZZLY_HOME:
export VIZZLY_HOME=/custom/path/.vizzlyThat changes where the CLI stores account auth, project-link metadata, and
other file-backed global state. On macOS, linked-project secrets stay in the
system Keychain unless VIZZLY_DISABLE_KEYCHAIN=true is set.
Troubleshooting
If login looks broken, start over:
vizzly logoutvizzly loginIf CI fails with an auth error, rotate the project token and update VIZZLY_TOKEN.