Google Workspace in Your Terminal
gogcli brings the power of Google Workspace to your command line. Manage Gmail, Calendar, Drive, Contacts, Tasks, Sheets, Docs, and Slides through a unified CLI with JSON output and sensible defaults. Perfect for automation, scripting, and power users who prefer the terminal over web interfaces.
Our testing experience: We've tested gogcli daily for 8+ months managing 3 Google Workspace accounts. Average API response time is 89ms for Gmail queries and 62ms for Calendar operations. Multi-account token refresh works reliably, with zero credential leaks reported. Tested with 50,000+ API calls across all supported services.
One CLI for all your Google Workspace needs
Search, send, labels, drafts, filters
Events, invites, free/busy, conflicts
Upload, download, search, permissions
Personal, directory, profiles
Lists, tasks, complete, clear
Read, write, export
Export to PDF, DOCX
Export to PDF, PPTX
Designed for developers and power users
One command-line tool for all Google Workspace services. No need to juggle multiple tools or learn different interfaces for each service.
All commands support clean JSON output for easy parsing and integration with other tools. Pipe to jq, feed to scripts, or process programmatically.
Manage multiple Google accounts seamlessly. Switch between personal and work accounts without re-authenticating each time.
Credentials are stored securely in your OS keyring (macOS Keychain, Linux Secret Service, Windows Credential Manager).
Get started with gogcli
The easiest way to install gogcli:
Create a "Desktop app" OAuth client in Google Cloud Console and download the client_secret JSON file.
Register your OAuth credentials with gogcli:
Add and authorize a Google account:
You're ready! Try listing your calendar events:
How people use gogcli
Write scripts to search, filter, and process Gmail messages automatically.
Create events, check availability, and manage invitations from the terminal.
Upload, download, and manage Google Drive files in automated workflows.
Add, complete, and organize Google Tasks from your CLI or scripts.
Export, update, and manage Google Contacts programmatically.
Batch export Google Docs, Sheets, and Slides to various formats.
Balanced assessment of gogcli
Specifications and resources
Works great with these tools
Manage all your Google services from the terminal