gitmyhub

gogcli

★ 2 updated 6mo ago ⑂ fork

Google Suite CLI: Gmail, GCal, GDrive, GContacts.

A command-line tool that lets you manage Gmail, Google Calendar, Drive, Sheets, and Contacts from your terminal using simple text commands, with built-in safety features for automation.

CLIGoogle APIssetup: moderatecomplexity 2/5

gogcli lets you control your entire Google life from the terminal. Instead of clicking around Gmail, Google Calendar, Drive, Contacts, Sheets, and a dozen other Google apps, you type short text commands to search emails, create calendar events, download files, or manage spreadsheets.

At a high level, the tool talks directly to Google's APIs on your behalf. You authenticate once through a browser, and it securely stores your login token so you never have to sign in again. From there, you run simple commands like searching recent emails or listing calendar conflicts, and it returns the results directly in your terminal. By default, it formats output as easy-to-read tables, but you can ask it for raw JSON if you want to pipe that data into other scripts or automations.

This tool is built for developers, system administrators, or anyone managing multiple Google accounts who prefers the keyboard over a mouse. For example, a startup founder juggling a personal Gmail and a company Workspace account could quickly search across both, or an IT admin could automate creating calendar events for the whole team. It also includes features specifically for AI agents, allowing you to restrict which commands an automated script can run, making it safe to let software handle your Google data.

A notable design choice is its focus on least-privilege access. When you connect an account, you can tell the tool to only ask for read-only permissions, or limit its access to specific services like just Calendar and Drive. This means you aren't handing over full control of your entire Google account just to run a simple script.

Where it fits