google-workspace-cli
Google Workspace administration via the gws CLI. Install, authenticate, and automate Gmail, Drive, Sheets, Calendar, Docs, Chat, and Tasks. Run security audits, execute 43 built-in recipes, and use 10 persona bundles. Use for Google Workspace admin, gws CLI setup, Gmail
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Google Workspace administration via the gws CLI. Install, authenticate, and automate Gmail, Drive, Sheets, Calendar, Docs, Chat, and Tasks. Run security audits, execute 43 built-in recipes, and use 10 persona bundles. Use for Google Workspace admin, gws CLI setup, Gmail automation, Drive management, or Calendar scheduling.
How to use
Zainstaluj gws CLI za pomocą npm (npm install -g @anthropic/gws) lub pobrań binarnych dla macOS, Linux lub Windows, a następnie sprawdź instalację poleceniem python3 scripts/gws_doctor.py, które weryfikuje ścieżkę, wersję i status uwierzytelnienia.
Skonfiguruj uwierzytelnianie OAuth: uruchom python3 scripts/auth_setup_guide.py --guide oauth, aby uzyskać instrukcje tworzenia projektu Google Cloud i poświadczeń, następnie wykonaj gws auth setup i zweryfikuj status poleceniem gws auth status --json.
Wyślij wiadomość e-mail za pomocą polecenia gws gmail users.messages send me --to "adres@domena.com" --subject "Temat" --body "Treść wiadomości", dostosowując odbiorcę, temat i zawartość do swoich potrzeb.
Wyświetl pliki z Google Drive poleceniem gws drive files list --json --limit 20, a następnie przefiltruj wyniki za pomocą python3 scripts/output_analyzer.py --select "name,mimeType,modifiedTime" --format table, aby zobaczyć nazwę, typ i datę modyfikacji.
Dla wdrożeń bez interakcji użytkownika (CI/CD) użyj konta serwisowego: uruchom python3 scripts/auth_setup_guide.py --guide service-account, aby uzyskać instrukcje, a następnie ustaw zmienną środowiskową GWS_SERVICE_ACCOUNT_KEY ze ścieżką do pliku klucza.