Automate batch operations on Google Drive files (move, delete, share) without manual clicking.
Build AI agents that can read emails, create calendar events, or manage spreadsheets on behalf of users.
Script repetitive admin tasks like bulk user provisioning or sending templated messages via Gmail.
Feed structured Google Workspace data into external systems or data pipelines via JSON output.
Requires Google OAuth 2.0 credentials setup and authentication flow before any API calls work.
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.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.