gws-shared
Agent skill fromgoogleworkspace/cli
gws CLI: Shared patterns for authentication, global flags, and output formatting.
How to install gws-shared
install gws-shared
# install the cli pack with the skills CLI
npx skills add googleworkspace/cli# or add only this skill to Claude Code: copy the folder
skills/gws-shared/
# into
~/.claude/skills/gws-shared/ (all projects)
.claude/skills/gws-shared/ (one project)
1# gws — Shared Reference23## Installation45The `gws` binary must be on `$PATH`. See the project README for install options.67## Authentication89```bash10# Browser-based OAuth (interactive)11gws auth login1213# Service Account14export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json15```1617## Global Flags1819| Flag | Description |20|------|-------------|21| `--format <FORMAT>` | Output format: `json` (default), `table`, `yaml`, `csv` |22| `--dry-run` | Validate locally without calling the API |23| `--sanitize <TEMPLATE>` | Screen responses through Model Armor |2425## CLI Syntax2627```bash28gws <service> <resource> [sub-resource] <method> [flags]29```3031### Method Flags3233| Flag | Description |34|------|-------------|35| `--params '{"key": "val"}'` | URL/query parameters |36| `--json '{"key": "val"}'` | Request body |37| `-o, --output <PATH>` | Save binary responses to file |38| `--upload <PATH>` | Upload file content (multipart) |39| `--page-all` | Auto-paginate (NDJSON output) |40| `--page-limit <N>` | Max pages when using --page-all (default: 10) |41| `--page-delay <MS>` | Delay between pages in ms (default: 100) |4243## Security Rules4445- **Never** output secrets (API keys, tokens) directly46- **Always** confirm with user before executing write/delete commands47- Prefer `--dry-run` for destructive operations48- Use `--sanitize` for PII/content safety screening4950## Shell Tips51…
Excerpt shown under the repository's Apache-2.0 license.
