OAuth2 (Recommended)
Authenticate using the device flow — no client ID or secret needed:- Display a one-time code in your terminal
- Open your browser to authorize
- Automatically save credentials to
~/.groniz/credentials.json
Auth Commands
API Key
Alternatively, set your Groniz API key as an environment variable:OAuth2 credentials take priority over the API key when both are present.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
GRONIZ_API_KEY | No* | - | Your Groniz API key |
GRONIZ_API_URL | No | https://api.groniz.com | API endpoint override |
GRONIZ_AUTH_SERVER | No | https://api.groniz.com | Auth server override |
groniz auth:login) or GRONIZ_API_KEY is required.