gws-shared
掌握 Google Workspace CLI 指令
此技能提供 gws CLI 工具的完整參考文件。它幫助您進行身份驗證、使用全域旗標,並遵循 Google Workspace 操作的正確 CLI 語法。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "gws-shared". How do I authenticate with gws?
النتيجة المتوقعة:
You can authenticate with gws using two methods: 1) Browser-based OAuth with 'gws auth login' for interactive sessions, or 2) Service account by setting the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to your key.json file.
استخدام "gws-shared". Show me the global flags available in gws
النتيجة المتوقعة:
gws supports these global flags: --format (output as json/table/yaml/csv), --dry-run (validate without API calls), and --sanitize (screen responses through Model Armor for content safety).
استخدام "gws-shared". How do I handle shell special characters in gws commands?
النتيجة المتوقعة:
For zsh, use double quotes when ranges contain '!' (e.g., --range "Sheet1!A1:D10"). For JSON parameters, wrap in single quotes to preserve inner double quotes (e.g., --params '{"pageSize": 5}').
التدقيق الأمني
آمنAll static analysis findings are false positives from markdown documentation code blocks. The skill contains only reference documentation for the gws CLI tool with no executable code or actual security risks.
درجة الجودة
ماذا يمكنك بناءه
CLI 快速參考
在使用命令列處理 Google Workspace API 時,查閱 gws CLI 語法、旗標和身份驗證方法。
身份驗證設定指南
了解如何使用瀏覽器型 OAuth 或服務帳戶憑證向 gws 進行身份驗證,以實現自動化工作流程。
最佳實踐參考
存取安全規則和 shell 技巧,確保在生產環境中安全且正確地使用 gws CLI 工具。
جرّب هذه الموجهات
How do I authenticate with the gws CLI using a service account?
Show me the gws CLI syntax for listing Google Drive files with JSON output format
How do I use gws to fetch all Gmail messages with automatic pagination and save as CSV?
What is the recommended way to test a destructive gws command before executing it?
أفضل الممارسات
- 在執行破壞性操作前,務必先使用 --dry-run 旗標驗證
- 對於程式化處理偏好使用 --format json,對於人類可讀的輸出則使用 --format table
- 在處理個人識別資訊或需要安全審查的內容時使用 --sanitize 旗標
تجنب
- 不要在命令輸出中直接顯示密碼或 API 金鑰,請使用安全的憑證管理
- 避免在 zsh 中對工作表範圍使用單引號,因為 '!' 字元會觸發歷史擴展
- 除非在有適當安全措施的自動化腳本中,否則不要在未確認的情況下執行寫入或刪除命令