Introduction to gws
gws is a dynamic command-line interface for Google Workspace APIs. Unlike traditional CLIs that ship with a fixed set of commands,gws builds its entire command surface at runtime by reading Google’s Discovery Service.
This project is under active development. Expect breaking changes as we march toward v1.0.
What makes gws different?
Dynamic Discovery
gws doesn’t ship a static list of commands. Instead, it:
- Reads Google’s Discovery Service at runtime
- Builds a complete command tree dynamically from API schemas
- Automatically supports new endpoints when Google Workspace adds them
gws picks it up automatically — no updates required.
Two-Phase Architecture
The CLI uses a unique two-phase parsing strategy:Command Tree Generation
Builds a complete
clap::Command tree from the document’s resources and methodsBuilt for humans and AI agents
For Humans
Stop writingcurl calls against REST documentation. gws gives you:
- Tab completion for all commands and resources
--helpon every resource with full API documentation--dry-runto preview requests before sending- Auto-pagination with
--page-allflag - Multiple output formats: JSON, YAML, table, CSV
For AI Agents
Every response is structured JSON, making it perfect for programmatic consumption:- 100+ Agent Skills included (
SKILL.mdfiles) - Structured JSON output for all operations
- Model Context Protocol (MCP) server support
- 50+ curated recipes for Gmail, Drive, Docs, Calendar, and Sheets
- No boilerplate — agents can call APIs directly
Key Use Cases
Drive Management
List, upload, download, and manage files. Full support for permissions, sharing, and search.
Gmail Automation
Send messages, manage labels, search emails, and process attachments programmatically.
Calendar Operations
Create events, manage calendars, handle attendees, and query availability.
Sheets Automation
Read, write, and update spreadsheet data. Perfect for reporting and data pipelines.
Docs & Slides
Create and update documents and presentations through the API.
Chat & Spaces
Send messages to Google Chat spaces and manage conversations.
Example Commands
Terminal
Schema Introspection
Inspect any method’s request and response schema without leaving your terminal:Terminal
What’s Next?
Installation
Install gws via npm or build from source
Quickstart
Get up and running in 5 minutes
Authentication
Set up Google Cloud OAuth credentials
Command Reference
Browse available services and commands