
Gws Shared
This is the foundational reference for using Google Workspace CLI commands through Claude. It covers OAuth and service account authentication, global output formatting options (JSON, table, YAML, CSV), and the core command syntax pattern. The security rules are solid, emphasizing dry-run validation and never exposing secrets. The shell tips are genuinely helpful, especially the zsh history expansion gotcha with exclamation marks in spreadsheet ranges. If you're building workflows that interact with Google Workspace APIs, this gives you the authentication patterns and safety guardrails you need before diving into service-specific commands.
- skills.sh installs
- 68K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill gws-shared --agent claude-codeInstalls into .claude/skills of the current project.
Files
gws — Shared Reference
Installation
The gws binary must be on $PATH. See the project README for install options.
Authentication
# Browser-based OAuth (interactive)
gws auth login
# Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
Global Flags
| Flag | Description |
|---|---|
--format <FORMAT> | Output format: json (default), table, yaml, csv |
--dry-run | Validate locally without calling the API |
--sanitize <TEMPLATE> | Screen responses through Model Armor |
CLI Syntax
gws <service> <resource> [sub-resource] <method> [flags]
Method Flags
| Flag | Description |
|---|---|
--params '{"key": "val"}' | URL/query parameters |
--json '{"key": "val"}' | Request body |
-o, --output <PATH> | Save binary responses to file |
--upload <PATH> | Upload file content (multipart) |
--page-all | Auto-paginate (NDJSON output) |
--page-limit <N> | Max pages when using --page-all (default: 10) |
--page-delay <MS> | Delay between pages in ms (default: 100) |
Security Rules
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Categories
- Backend & APIs, Security, CLI & Terminal, Office & Documents
More from googleworkspace/cli
All 113- Gws Calendar62.9K
- Gws Sheets60.7K
- Gws Docs60.2K
- Gws Sheets Read52K
- Gws Docs Write51.5K
- Gws Calendar Agenda50.9K
- Gws Drive Upload50.6K
- Gws Calendar Insert49.5K
- Gws Gmail Triage48.2K
- Gws Sheets Append48K
- Gws Tasks46.3K
- Gws Slides42.9K
- Gws Forms42.4K
- Gws Meet42.2K
- Gws Gmail Read42.1K
- Gws Keep39.9K
- Gws Gmail Watch38.1K
- Gws Gmail Reply36K
- Gws Gmail Forward34.5K
- Gws Workflow34.3K
- Gws Chat33.9K
- Gws People33.8K
- Gws Gmail Reply All33.8K
- Gws Workflow Email To Task33.2K