sota login
Authenticate with your sota.io account using browser-based OAuth.
Usage
sota login
How It Works
- The CLI starts a local callback server
- Your browser opens to the Supabase Auth login page
- You authenticate with your email and password
- The browser redirects to the local callback
- 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