# googleworkspace/cli

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/googleworkspace-cli).**

27,096 stars · 1,425 forks · Rust · Apache-2.0

## Links

- GitHub: https://github.com/googleworkspace/cli
- Homepage: https://developers.google.com/workspace
- awesome-repositories: https://awesome-repositories.com/repository/googleworkspace-cli.md

## Topics

`agent-skills` `ai-agent` `automation` `cli` `discovery-api` `gemini-cli-extension` `google-admin` `google-api` `google-calendar` `google-chat` `google-docs` `google-drive` `google-sheets` `google-workspace` `oauth2` `rust`

## Description

The Google Workspace CLI is a command-line interface and Google API client designed to automate tasks across Google Workspace services. It functions as a cloud productivity automator that uses the Google Discovery Service to dynamically generate command structures and parameter requirements at runtime.

The project distinguishes itself by providing a specialized AI agent toolset, exposing a server over standard input and output to provide structured tool definitions and skills for AI clients. It includes security layers for AI content sanitization to protect against prompt injection and utilizes template-based filtering to remove sensitive data from API responses.

The tool covers a broad range of capabilities, including the management of documents, spreadsheets, slides, and forms, as well as administrative control over users and domains. It supports multi-step workflow orchestration through predefined recipes and provides comprehensive identity management via OAuth2 flows and service accounts. Additional functionality includes email and chat communication, calendar and task management, and the ability to stream large datasets as newline-delimited JSON.

## Tags

### Artificial Intelligence & ML

- [Agent Toolsets](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-toolsets.md) — Exposes a specialized set of structured API tools and skills that allow AI agents to interact with cloud productivity services.
- [Agent Tooling Extensions](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-architectures/tooling-integration-interfaces/agent-tooling-extensions.md) — Provides command-line extensions and functional interfaces that extend AI agent capabilities to interact with workspace tools. ([source](https://github.com/googleworkspace/cli/blob/main/README.md))
- [Agent Skill Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-capabilities-skills-tooling/agent-skill-integrations.md) — Provides pre-defined configurations and recipes that enable AI agents to perform specific tasks across Google Workspace services. ([source](https://github.com/googleworkspace/cli#readme))
- [AI Agent Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-servers.md) — Exposes a server over standard input and output to provide structured tool schemas for AI agent connectivity.
- [Agent Interface Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-api-adapters/agent-interface-servers.md) — Implements a server over standard input and output to provide structured tool definitions for AI agents. ([source](https://github.com/googleworkspace/cli/blob/main/CHANGELOG.md))
- [Automation Recipes](https://awesome-repositories.com/f/artificial-intelligence-ml/automation-recipes.md) — Executes predefined recipes to automate complex, multi-step task sequences across different cloud services.
- [Cross-Application Workflow Automation](https://awesome-repositories.com/f/artificial-intelligence-ml/cross-application-workflow-automation.md) — Enables the execution of complex sequences of actions to move and sync data between different workspace services. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))

### Business & Productivity Software

- [Workspace Command Line Interfaces](https://awesome-repositories.com/f/business-productivity-software/workspace-command-line-interfaces.md) — Provides a command-line interface for automating tasks across Google Workspace services using the Google Discovery Service.
- [Productivity Workflow Automations](https://awesome-repositories.com/f/business-productivity-software/productivity-workflow-automations.md) — Provides a system for orchestrating multi-step workflows and recipes across email, calendar, and document services.
- [Task and Workflow Automation](https://awesome-repositories.com/f/business-productivity-software/task-workflow-automation.md) — Implements composite automation workflows such as converting emails into tasks or announcing files in chat spaces. ([source](https://github.com/googleworkspace/cli/blob/main/README.md))
- [Command Line Task Lists](https://awesome-repositories.com/f/business-productivity-software/command-line-task-lists.md) — Provides a terminal-based interface for creating task lists and tracking overdue items. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))
- [Email Management Tools](https://awesome-repositories.com/f/business-productivity-software/email-management-tools.md) — Offers a comprehensive system to send new messages, handle threaded replies, and summarize unread inboxes. ([source](https://github.com/googleworkspace/cli/blob/main/README.md))
- [Form Management](https://awesome-repositories.com/f/business-productivity-software/form-management.md) — Provides tools to programmatically create online forms and retrieve their submitted responses. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))
- [Calendar Event Management](https://awesome-repositories.com/f/business-productivity-software/task-workflow-automation/calendar-automation/calendar-event-management.md) — Provides tools to schedule recurring events, check user availability, and generate agenda summaries via the calendar API. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))

### Web Development

- [Runtime Command Generation](https://awesome-repositories.com/f/web-development/service-discovery/runtime-command-generation.md) — Dynamically generates command structures and parameter requirements at runtime using the Google Discovery Service.

### Development Tools & Productivity

- [API Client Libraries](https://awesome-repositories.com/f/development-tools-productivity/api-client-libraries.md) — Implements a tool for executing authenticated requests to Google APIs via OAuth2 and service accounts.
- [API Inspection Tools](https://awesome-repositories.com/f/development-tools-productivity/api-inspection-tools.md) — Includes utilities to introspect API schemas to determine required parameters and request structures for command construction. ([source](https://github.com/googleworkspace/cli/blob/main/CONTEXT.md))
- [Meeting Management](https://awesome-repositories.com/f/development-tools-productivity/meeting-management.md) — Provides utilities to create virtual meeting spaces and review participant attendance logs. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))

### DevOps & Infrastructure

- [Workflow Orchestration](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/workflow-orchestration.md) — Orchestrates complex, multi-step sequences of API actions involving format translation and composition through custom commands. ([source](https://github.com/googleworkspace/cli/blob/main/AGENTS.md))

### Security & Cryptography

- [API Authentication](https://awesome-repositories.com/f/security-cryptography/api-authentication.md) — Provides a unified system for authenticating requests via browser flows, service accounts, or access tokens. ([source](https://github.com/googleworkspace/cli#readme))
- [Authentication Flows](https://awesome-repositories.com/f/security-cryptography/authentication-flows.md) — Provides interactive browser login flows and manual secret configuration to authorize API access. ([source](https://github.com/googleworkspace/cli/blob/main/README.md))
- [AI Content Filters](https://awesome-repositories.com/f/security-cryptography/content-filtering/ai-content-filters.md) — Implements a security layer to scan prompts and responses to protect against prompt injection and ensure content safety. ([source](https://github.com/googleworkspace/cli#readme))
- [Data Sanitization](https://awesome-repositories.com/f/security-cryptography/data-sanitization.md) — Provides a utility to filter sensitive information in API responses using configurable templates to protect data privacy. ([source](https://github.com/googleworkspace/cli/blob/main/AGENTS.md))
- [Identity Management](https://awesome-repositories.com/f/security-cryptography/identity-access-management/identity-management.md) — Manages identities using application default credentials, encrypted token files, and environment variables. ([source](https://github.com/googleworkspace/cli/blob/main/CHANGELOG.md))
- [Identity-Based Authentication](https://awesome-repositories.com/f/security-cryptography/identity-authentication/identity-based-authentication.md) — Supports server-to-server authentication using JSON key files for non-interactive service account access. ([source](https://github.com/googleworkspace/cli/blob/main/README.md))
- [Identity Resource Management](https://awesome-repositories.com/f/security-cryptography/identity-resource-management.md) — Provides a utility for managing users, domains, and resource policies within a Workspace organization.
- [OAuth Authentication](https://awesome-repositories.com/f/security-cryptography/oauth-authentication.md) — Implements secure identity management using browser-assisted OAuth2 flows and encrypted local token storage.
- [Token Management](https://awesome-repositories.com/f/security-cryptography/token-management.md) — Manages API service access using a system of tokens, credential files, and secure system keyrings. ([source](https://github.com/googleworkspace/cli/blob/main/AGENTS.md))

### Software Engineering & Architecture

- [Pre-defined Executions](https://awesome-repositories.com/f/software-engineering-architecture/application-lifecycle-management/configuration-management/configuration-formats-and-schemas/yaml-configuration-files/workflow-recipes/pre-defined-executions.md) — Allows running established multi-step recipes for common business tasks like meeting preparation and weekly digests. ([source](https://github.com/googleworkspace/cli/blob/main/CHANGELOG.md))

### System Administration & Monitoring

- [User Account Administration](https://awesome-repositories.com/f/system-administration-monitoring/user-account-administration.md) — Offers command-line tools to list and manage user accounts across a domain with automatic pagination. ([source](https://github.com/googleworkspace/cli/blob/main/CONTEXT.md))

### Part of an Awesome List

- [Workspace Productivity Helpers](https://awesome-repositories.com/f/awesome-lists/devtools/workspace-productivity-helpers.md) — Ships helper commands that simplify common tasks like sending emails or creating calendar events through unified interfaces. ([source](https://github.com/googleworkspace/cli#readme))

### Content Management & Publishing

- [Document Management](https://awesome-repositories.com/f/content-management-publishing/content-management-systems/content-management-platforms/enterprise-specialized-systems/document-management-systems/document-management.md) — Implements operations for creating, reading, and updating cloud documents using templates or text appending. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))

### Data & Databases

- [Cloud File Uploaders](https://awesome-repositories.com/f/data-databases/cloud-file-uploaders.md) — Handles large file transfers to cloud storage using streamed multipart requests to optimize memory usage.
- [Result Streaming APIs](https://awesome-repositories.com/f/data-databases/result-streaming-apis.md) — Supports memory-efficient streaming of large paginated datasets as newline-delimited JSON for downstream processing. ([source](https://github.com/googleworkspace/cli/blob/main/README.md))
- [Spreadsheet Connectors](https://awesome-repositories.com/f/data-databases/spreadsheet-connectors.md) — Provides integration for reading, writing, appending rows, and exporting data to CSV from spreadsheets. ([source](https://github.com/googleworkspace/cli/blob/main/CONTEXT.md))
- [Newline-Delimited JSON Streams](https://awesome-repositories.com/f/data-databases/streaming-parsers/json/newline-delimited-json-streams.md) — Outputs paginated API datasets as a continuous stream of newline-delimited JSON objects for piping.

### Networking & Communication

- [Team Chat Services](https://awesome-repositories.com/f/networking-communication/team-chat-services.md) — Provides utilities to send messages to chat spaces and announce files to teams. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))

### Operating Systems & Systems Programming

- [File Organization Tools](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/file-organization-tools.md) — Implements tools to organize files and folders and analyze storage quotas in cloud storage. ([source](https://github.com/googleworkspace/cli/blob/main/CONTEXT.md))

### User Interface & Experience

- [Slide Content Authoring](https://awesome-repositories.com/f/user-interface-experience/presentation-frameworks/slide-management-configuration/slide-content-authoring.md) — Offers tools to programmatically create and write content for presentation slides. ([source](https://github.com/googleworkspace/cli/blob/main/docs/skills.md))
