| title | Overview |
|---|---|
| permalink | / |
| description | gog is a single Go CLI for Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Apps Script, Contacts, Tasks, and Workspace admin — built for terminals, scripts, CI, and coding agents. |
A script-friendly Google Workspace CLI. One binary, every major Google API, predictable output for terminals, shell pipelines, CI, and coding agents.
- One CLI, every API. Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Apps Script, Contacts, People, Tasks, Classroom, Chat, Groups, Keep, and Workspace Admin under one binary.
- Stable output.
--jsonto stdout for scripts,--plainTSV when you need toawk, human progress on stderr so pipes stay clean. - Multi-account, multi-client. Many Google accounts and OAuth client projects in one config. OAuth, direct access tokens, ADC, and Workspace service accounts all supported.
- Built for agents. Runtime allow/deny lists (
--enable-commands,--disable-commands,--gmail-no-send) and baked safety-profile binaries for sandboxes that should not be able to broaden their own permissions. - Read-only audits. Drive
tree,du,inventory; Contactsdedupepreview; raw API JSON dumps without ever mutating remote state. - Generated reference. Every command has a Markdown page produced from
gog schema --json.
- Trying it. Read Install, then Quickstart. Five minutes from
brew installto your first authenticated query. - Wiring up an agent. Read Safety Profiles and the bundled
gogagent skill. Lock the binary down before you hand it to a model. - Running Workspace at scale. Read Auth Clients for service accounts, named OAuth clients, and domain-wide delegation.
- Backing up an account. Read Backup before pointing
gog backup pushat a busy mailbox. - Looking up a flag. Open the Command Index — every subcommand has a generated page.
gog is actively developed; the CHANGELOG has the most recent shipping log. The API surface is intentionally not 1:1 with gmcli/gccli/gdcli and there is no migration tooling — gog is the new CLI, not a port.
- MCP server (this is a CLI).
- Hosted runtime, web UI, or GUI.
- Importing legacy
~/.gmcli,~/.gccli,~/.gdclistate.
Released under the MIT license. Not affiliated with Google. Google is a trademark of Google LLC.