sota.io

sota login

Authenticate with your sota.io account using browser-based OAuth.

Usage

sota login

How It Works

  1. The CLI starts a local callback server
  2. Your browser opens to the Supabase Auth login page
  3. You authenticate with your email and password
  4. The browser redirects to the local callback
  5. Tokens are stored at ~/.config/sota/credentials.json

Token Storage

Credentials are stored locally and automatically refreshed when expired:

~/.config/sota/credentials.json

Logout

To remove stored credentials:

sota logout

Alternative: API Key Authentication

For CI/CD or headless environments, use an API key instead of browser login:

# Store a key (get it from dashboard settings)
sota auth set-key sota_your_key_here

# Or set as environment variable
export SOTA_API_KEY=sota_your_key_here

# Check which auth method is active
sota auth status

Example

$ sota login
Opening browser for authentication...
Waiting for callback...

Logged in as user@example.com