googleworkspace avatar

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-code

Installs 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

FlagDescription
--format <FORMAT>Output format: json (default), table, yaml, csv
--dry-runValidate locally without calling the API
--sanitize <TEMPLATE>Screen responses through Model Armor

CLI Syntax

gws <service> <resource> [sub-resource] <method> [flags]

Method Flags

FlagDescription
--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-allAuto-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
1addyosmani avatarbrowser-testing-with-devtoolsaddyosmani/agent-skillsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture co67.7Kskills.sh installs
2nexscope-ai avatarcross-border-ecommercenexscope-ai/ecommerce-skillsCross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexit63Kskills.sh installs
3heygen-com avatarmotion-doctrineheygen-com/hyperframesGATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous came62.2Kskills.sh installs
4insforge avatarinsforge-integrationsinsforge/insforge-skillsUse when wiring an external auth provider (Clerk, Auth0, WorkOS, Kinde, Stytch, Better Auth) into InsForge for JWT-based RLS, or when adding the OKX x402 paymen60.5Kskills.sh installs
5useosint avatarinvestigate-without-getting-madeuseosint/skillsInvestigator OPSEC — threat-model who might notice you, control your attribution surface across IP, ASN, browser and TLS fingerprint, timing and logged-in accou58.2Kskills.sh installs
6useosint avatarwhat-leaked-about-youuseosint/skillsCheck and interpret data-breach exposure for an email, username, phone or name using Have I Been Pwned, the Pwned Passwords k-anonymity range API, DeHashed, Int57.8Kskills.sh installs