gog-cli
gog-cli - Google Workspace CLI
Command-line tool for interacting with Google Workspace services.
Service References
Load only the reference file for the service you need:
- Email operations - See references/gmail.md
- Calendar & scheduling - See references/calendar.md
- File storage - See references/drive.md
- Spreadsheets - See references/sheets.md
- Documents & presentations - See references/docs-slides.md
- Contact management - See references/contacts.md
- Task lists - See references/tasks.md
- Team messaging - See references/chat.md
- Education/courses - See references/classroom.md
Global Options
Apply to any command:
| Option | Description |
|---|---|
--account <email|alias> |
Specify account to use |
--json |
Machine-readable JSON output |
--plain |
Tab-separated plaintext |
--force |
Skip confirmation prompts |
--no-input |
Fail rather than prompt (CI-friendly) |
--verbose |
Show API requests/responses |
Quick Examples
# Gmail: search recent emails
gog gmail search 'newer_than:7d' --max 10
# Calendar: today's events
gog calendar events primary --today
# Drive: list files
gog drive ls --max 20
# Sheets: read cells
gog sheets get <spreadsheetId> 'Sheet1!A1:B10'
# Tasks: list task lists
gog tasks lists
Utility Commands
# Current time
gog time now
gog time now --timezone America/New_York
# Auth status
gog auth list --check
gog auth status
Tips
- Use
--jsonfor scripting and piping to jq - Most IDs can be found in Google URLs (e.g., spreadsheet ID in sheets URL)
- Gmail search uses Google's search syntax (from:, to:, subject:, newer_than:, etc.)
- Calendar accepts "primary" as calendarId for main calendar
More from steveclarke/dotfiles
md-to-pdf
Convert markdown files to PDF using Chrome. Use when user wants to render markdown to PDF, print a document, or create a shareable PDF from markdown. Triggers on "markdown to pdf", "render to pdf", "pdf from markdown", "print this markdown".
75bruno-endpoint-creation
Create Bruno REST API endpoint configurations with proper authentication, environment setup, and documentation. Use when setting up API testing with Bruno, creating new endpoints, or configuring collection-level authentication. Triggers on "create Bruno endpoint", "Bruno API testing", "set up Bruno collection".
68readme-writer
Write and revise READMEs and technical documentation for software projects. Scores readability with Flesch-Kincaid and vocabulary profiling. Use when writing, revising, or reviewing a README, README.md, or project documentation. Triggers on "write readme", "improve readme", "readme review", "documentation writing".
56time-tracking
Manage time tracking with Toggl or Clockify. Use when user asks about time tracking, timers, timesheets, logging hours, starting/stopping work, checking what's running, viewing time entries, or creating manual entries. Triggers on "toggl", "clockify", "time tracking", "timer", "timesheet", "log time", "track time", "hours worked".
521password
Fetch secrets and create/manage 1Password items via CLI. Use when needing API keys, tokens, or credentials, or when storing new secrets. Ask user for the 1Password secret reference (op://Vault/Item/field format) rather than the actual secret.
49feature-requirements
Creates structured requirements documents through guided discovery, practical scoping, and consolidated output. Produces a single requirements.md with entities, workflows, constraints, and acceptance criteria following the established feature development process.
49