Unofficial Google Workspace CLI for Gmail, Calendar, Drive, Docs, Sheets, Chat, Contacts, Tasks, and admin workflows.
$brew install gogcli
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis
gog is an unofficial Google Workspace CLI that brings Gmail, Calendar, Drive, Docs, Sheets, Chat, Contacts, Tasks, Classroom, and related Google APIs into one shell tool. It is aimed at direct terminal automation across multiple Google accounts, with both read and write commands.
What It Enables
- Read, search, and send Gmail; inspect attachments and threads; manage labels, drafts, forwarding, filters, and mailbox watches.
- List, search, upload, download, share, and export Drive files, then create or edit Docs, Sheets, Slides, Forms, and Apps Script resources from the shell.
- Manage calendars, tasks, contacts, chat spaces and messages, classroom objects, groups, and some Workspace admin or service-account flows without leaving the terminal.
Agent Fit
- Global
--jsonand--plainoutput modes keep stdout parseable, while prompts and progress stay on stderr. - Global
--no-input,--force, and--enable-commandsflags, plusschemaandagent exit-codes, make it easier to wrap in agent loops or constrained sandboxes. - The first auth flow is the main friction point: you usually need Google OAuth credentials and browser consent before unattended automation becomes smooth.
Caveats
- This is not an official Google CLI, so coverage and behavior depend on the open source project rather than vendor support.
- Some commands are Workspace-only or require service-account delegation, and scopes must be granted explicitly.