Command-line Interface (CLI) Tool
24.9k 2026-04-18
googleworkspace/cli
A unified command-line tool for interacting with all Google Workspace APIs, designed for both human users and AI agents, featuring dynamic API discovery and structured JSON output.
Core Features
Unified CLI for all Google Workspace APIs (Drive, Gmail, Calendar, etc.)
Dynamically built from Google Discovery Service, auto-updating with new APIs
Structured JSON output for easy parsing by humans and AI agents
Includes 40+ AI agent skills for LLM integration
Supports various authentication methods for different environments
Quick Start
npm install -g @googleworkspace/cliDetailed Introduction
gws is an unofficial, powerful command-line interface designed to streamline interactions with the entire suite of Google Workspace APIs. Unlike traditional methods requiring manual curl calls or custom scripting, gws dynamically discovers and exposes all Workspace API endpoints and methods, ensuring it's always up-to-date. It provides a user-friendly experience with --help and --dry-run options, while also offering structured JSON output and pre-built AI agent skills, making it ideal for both human-driven automation and advanced AI-powered workflows.