CLI for Google Workspace (Gmail, Calendar, Drive, Docs, Sheets, etc.) with account-based auth and JSON/text output
CLI for Google Workspace services with account-based authentication and flexible output formats.
gog <command> --account user@domain.com --json
| Flag | Purpose | Example |
|------|---------|----------|
| --account | Set Google account email (required for most commands) | --account alice@company.com |
| --client | Select OAuth client/credential set | --client work |
| --json | Output JSON (best for scripting) | gog ... --json |
| --plain | Output TSV, no colors (parseable) | gog ... --plain |
| --results-only | In JSON mode, emit only the result (no envelope) | gog ... --json --results-only |
| --select | Pick comma-separated fields (JSON mode) | --select id,name,email |
| --dry-run | Preview changes without making them | --dry-run |
| --force | Skip confirmations (use in scripts) | --force |
| --no-input | Fail instead of prompting (CI-safe) | --no-input |
# List with authentication
gog gmail list --account user@domain.com --json
# Select specific fields for scripting
gog drive ls / --account user@domain.com --json --select name,id,mimeType
# Test changes safely
gog calendar create event --dry-run --account user@domain.com
# Destructive operation in CI without prompts
gog docs delete id --force --no-input --account user@domain.com
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Control Sonos speakers (discover/status/play/volume/group).
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
Capture frames or clips from RTSP/ONVIF cameras.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Category:tools