Quickstart
This path uses your own Google Cloud project and a Desktop OAuth client. That keeps the consent screen, enabled APIs, quotas, verification state, and refresh tokens under your control.
1. Create the Google client
In Google Cloud Console:
- Create or select a project.
- Configure the OAuth consent screen.
- Create an OAuth client ID with application type
Desktop app. - Enable the APIs you plan to call.
For service-specific setup notes, use the auth guides.
2. Store the client in gum
printf '%s' "$GOOGLE_OAUTH_CLIENT_SECRET" \
| gum auth use-oauth-client --client-id "$GOOGLE_OAUTH_CLIENT_ID" --secret-stdinPassing the secret through stdin keeps it out of shell history.
3. Authorize a small scope set
gum login --service gmail,calendar
gum auth status
gum doctorUse --no-browser on SSH hosts or dev containers.
4. Inspect the catalog
gum search "gmail messages"
gum describe gmail.users.messages.list
gum schema --json > gum-command-schema.jsonsearch finds operations by text. describe prints the selected catalog entry, including variants and example arguments. schema --json prints the CLI command tree used by the generated docs.
5. Make a read call
gum read gmail.users.messages.list \
--args '{"userId":"me","maxResults":5}' \
--output jsonIf Google returns accessNotConfigured, enable that API in the Cloud project that owns the OAuth client, wait for propagation, and retry. If gum returns SCOPE_MISSING, rerun gum login with the service or exact scope the error reports.
