Getting Started
Authentication
How to authenticate with Deployzy.
There are three ways to authenticate with the CLI:
1. Browser login (recommended)
Opens your browser to sign in with Google:
deployzy loginThis saves a JWT token to ~/.deployzy/authtoken automatically. You only need to do this once.
2. API key
Get an API key from your dashboard, then:
deployzy authtoken sm_live_your_key_hereAPI keys are useful for: - CI/CD pipelines - Shared machines - Programmatic access via SDKs
Treat API keys like passwords — they grant full account access. Never commit them to git; use environment variables or a secrets manager.
3. Email + password
deployzy login:email --email [email protected] --password yourpasswordHow it works
deployzy loginsaves a JWT token (expires in 24 hours, auto-refreshes)deployzy authtokensaves an API key (never expires unless revoked)- Both are stored at
~/.deployzy/authtoken - The CLI reads this file automatically on every command
For SDKs
Pass your API key directly:
import { Deployzy } from 'deployzy-sdk';const client = new Deployzy({ authtoken: 'sm_live_...' });from deployzy import Deployzyclient = Deployzy(authtoken="sm_live_...")Was this page helpful?
