Getting Started

Authentication

How to authenticate with Deployzy.

There are three ways to authenticate with the CLI:

Opens your browser to sign in with Google:

deployzy login

This 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_here

API 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 yourpassword

How it works

  • deployzy login saves a JWT token (expires in 24 hours, auto-refreshes)
  • deployzy authtoken saves 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?