Google Workspace from your terminal
Drive, Docs, Sheets, Slides, Calendar and Gmail across every Google account you use. Built for power users and AI agents.
curl -fsSL https://raw.githubusercontent.com/SainyTK/goog-cli/main/install.sh | sh
Multiple accounts
Every account, one login each
Work, client and personal accounts side by side. Point goog at any file and it finds the account that can open it.
Log in once per account
One consent screen covers all six apps. Commands never open a browser again.
Paste any link
goog tries the remembered account, then the active one, then the rest, and remembers which one worked.
Strict when you say so
--account uses exactly that account, with no fallback.
Demos
From the terminal to Workspace
Type the commands yourself or ask Claude Code. The result lands in Google Workspace.
Coverage
Six apps, one CLI
High-level commands for everyday work, with a raw API path when you need the last mile.
Drive
List, find, upload, replace, move, convert Office files and trash. Comments on any file.
Docs
Create from templates, edit text, images, tables and styles, anchor comments and write suggestions.
Sheets
Read and write values as tables or CSV, format ranges, manage tabs, filters and protection.
Slides
Create decks and edit slides, text, images, tables and shapes, or send raw batch updates.
Calendar
Check free/busy, then create, update, move and delete events and calendars.
Gmail
Search and read messages, download attachments, write reply drafts and edit drafts in place.
AI agents
Made for coding agents
Add the skill and Claude Code, Codex or any agent with a shell uses goog for every Workspace task.
npx skills add SainyTK/goog-cliReadable by default, JSON on request
Tables for people, the full structured result for scripts.
goog calendar events list primary --jsonClean stdout
Progress and update notices go to stderr, so pipes and exit codes stay intact.
goog sheets values get-table ID 'A1:D9' --format csv | wc -lPreview before writing
Dry runs show the exact change. Revision guards stop overwriting a newer edit.
goog docs text replace ID --find draft --replace final --dry-runRespect other people's files
Edits can land as suggestions and comments anchor to the text they discuss.
goog docs text replace ID --find old --replace new --suggestNo browser in the loop
One consent screen per account at login. Ordinary commands never open a browser or prompt.
goog auth loginGet started
Up and running in four steps
curl -fsSL https://raw.githubusercontent.com/SainyTK/goog-cli/main/install.sh | shSet up Google Cloud
Create the OAuth app goog signs in with, in your own Google Cloud project.
Open the setup guideAdd your OAuth app
goog auth setup --client-secret-file ~/Downloads/client_secret_*.jsonLog in to each account once
goog auth loginWork across all of them
goog drive ls --limit 20