# Gws Shared > gws CLI: Shared patterns for authentication, global flags, and output formatting. Source: https://skillsagentes.com/skills/googleworkspace/cli/gws-shared Repository: https://github.com/googleworkspace/cli Author: googleworkspace License: Apache-2.0 Updated: hace 4 meses Context cost: 20 tok installed, 667 tok once triggered, 667 tok with every bundled file Bundle: 1 file, 3 KB Permissions requested: none declared ## Install ```bash npx -y skills add googleworkspace/cli --skill gws-shared --agent claude-code ``` ## What it does - Documenta autenticación (OAuth o Service Account) para el CLI `gws` - Explica flags globales como `--format`, `--dry-run` y `--sanitize` - Detalla la sintaxis general y flags de método (`--params`, `--json`, `--page-all`, etc.) - Establece reglas de seguridad: no exponer secretos y confirmar antes de escrituras/borrados - Da tips de shell para manejar `!` en zsh y comillas en JSON ## Use it when - Se necesita autenticar o configurar credenciales para el CLI `gws` - Se usan flags globales o de método comunes a cualquier servicio de `gws` - Se ejecutan comandos de escritura/borrado y hace falta seguir reglas de seguridad - Aparecen problemas de shell con rangos tipo `Sheet1!A1` o JSON con comillas ## What triggers it - "¿Cómo me autentico con gws usando una Service Account?" - "Necesito paginar todos los resultados con gws drive files list" - "¿Por qué zsh me rompe el rango Sheet1!A1 al usar gws sheets?" ## Before you install - El binario `gws` debe estar en el $PATH; para Service Account se requiere GOOGLE_APPLICATION_CREDENTIALS. ## Files - SKILL.md — 3 KB ## SKILL.md Reproduced verbatim from googleworkspace/cli under Apache-2.0. This section is the upstream document and is in English. # gws — Shared Reference ## Installation The `gws` binary must be on `$PATH`. See the project README for install options. ## Authentication ```bash # Browser-based OAuth (interactive) gws auth login # Service Account export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json ``` ## Global Flags | Flag | Description | |------|-------------| | `--format ` | Output format: `json` (default), `table`, `yaml`, `csv` | | `--dry-run` | Validate locally without calling the API | | `--sanitize