Get OAuth2 access tokens from your terminal
Visit-Auth-URLThe terminal stays connected. Once you authorize in the browser, the token arrives automatically.
Replace {service} with the service name:
| Parameter | Description | Example |
|---|---|---|
scopes |
Additional OAuth2 scopes (comma-separated) | ?scopes=https://www.googleapis.com/auth/gmail.labels |
format |
Output format: json (default) or env |
?format=env |
fields |
Comma-separated field names to include. Use token as an alias for access_token |
?fields=token,expires_in or ?fields=token,expires_in&format=env |