← Back to registry

gog (gogcli) cloud

Fast CLI for Gmail, Calendar, Drive and Google Workspace

gog is a fast, script-friendly CLI for Google Workspace services including Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Chat, Tasks, Contacts, and more. It features JSON-first output, multiple account support, and flexible OAuth authentication — making it ideal for automation and AI agent integration.

Features

Install

brew: brew install gogcli
aur: yay -S gogcli
source: git clone https://github.com/steipete/gogcli.git && cd gogcli && make

Commands

CommandSyntaxDescription
gmail search gog gmail search 'query' --max 10 Search Gmail messages with Gmail query syntax
calendar events gog calendar events primary --today List today's calendar events
drive search gog drive search 'query' --max 20 Search files across Google Drive
docs cat gog docs cat <docId> Read a Google Doc's content as plain text
sheets get gog sheets get <spreadsheetId> 'Sheet1!A1:B10' Read cell values from a Google Sheet

Links

Agent Usage Example

Use cases:

Example workflow:

gog gmail search 'from:client newer_than:1d' --json --max 5 | jq '.[0].threadId' | xargs -I{} gog gmail thread get {} --include-body