gitmyhub

cli

Rust ★ 29k updated 21h ago

Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.

Command-line tool to control Google Workspace services (Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin) from your terminal or scripts without writing custom code.

RustGoogle Workspace APIsOAuth 2.0JSONsetup: moderatecomplexity 3/5

The Google Workspace CLI (called "gws") is a command-line tool that lets you control all of Google's Workspace services — Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin — from your terminal or automate them in scripts, without writing any custom code against Google's APIs.

In plain terms: instead of clicking around in a browser or building complex integrations, you type commands like "list my Drive files" or "create a spreadsheet" and get structured results back instantly. This is especially powerful for automating repetitive tasks (batch file operations, sending messages, managing users) or feeding Google Workspace data into AI agents.

The tool is unusually clever in how it stays current: rather than hardcoding a list of commands, it reads Google's own live API catalog at startup and builds all available commands dynamically. That means when Google adds a new API feature, the CLI gains it automatically.

For AI agent builders: it includes over 40 pre-built "agent skills" and outputs everything as structured JSON — the format AI systems prefer. This makes it a ready-made toolkit for giving an AI assistant the ability to manage someone's Google Workspace on their behalf.

Important context: despite living under the "googleworkspace" GitHub organization, the README explicitly states this is not an officially supported Google product. It requires setting up your own Google Cloud project and OAuth credentials, which involves some technical steps.

Built in Rust (fast and lightweight), installable via npm, Homebrew, or direct download. Free and open-source.

Where it fits