gws-shared by googleworkspace/cli
npx skills add https://github.com/googleworkspace/cli --skill gws-sharedgws 二进制文件必须在 $PATH 环境变量中。请参阅项目 README 文件了解安装选项。
# 基于浏览器的 OAuth(交互式)
gws auth login
# 服务账户
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
| 标志 | 描述 |
|---|---|
--format <FORMAT> | 输出格式:json(默认)、table、yaml、 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
csv--dry-run | 本地验证而不调用 API |
--sanitize <TEMPLATE> | 通过 Model Armor 筛选响应 |
gws <service> <resource> [sub-resource] <method> [flags]
| 标志 | 描述 |
|---|---|
--params '{"key": "val"}' | URL/查询参数 |
--json '{"key": "val"}' | 请求体 |
-o, --output <PATH> | 将二进制响应保存到文件 |
--upload <PATH> | 上传文件内容(多部分) |
--page-all | 自动分页(NDJSON 输出) |
--page-limit <N> | 使用 --page-all 时的最大页数(默认:10) |
--page-delay <MS> | 页面之间的延迟(毫秒)(默认:100) |
--dry-run--sanitize 进行个人身份信息/内容安全筛查zsh ! 扩展: 像 Sheet1!A1 这样的工作表范围包含 !,zsh 会将其解释为历史扩展。请使用带有转义内部引号的双引号,而不是单引号:
# 错误(zsh 会破坏 !)
gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10'
# 正确
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
带双引号的 JSON: 将 --params 和 --json 的值用单引号包裹,这样 shell 就不会解释内部的双引号:
gws drive files list --params '{"pageSize": 5}'
https://github.com/googleworkspace/clihttps://github.com/googleworkspace/cli/issues每周安装量
8.1K
仓库
GitHub 星标数
22.6K
首次出现
2026年3月4日
安全审计
安装于
codex7.4K
opencode7.3K
gemini-cli7.3K
cursor7.3K
github-copilot7.3K
amp7.3K
The gws binary must be on $PATH. See the project README for install options.
# Browser-based OAuth (interactive)
gws auth login
# Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
| Flag | Description |
|---|---|
--format <FORMAT> | Output format: json (default), table, yaml, csv |
--dry-run | Validate locally without calling the API |
--sanitize <TEMPLATE> | Screen responses through Model Armor |
gws <service> <resource> [sub-resource] <method> [flags]
| Flag | Description |
|---|---|
--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-all | Auto-paginate (NDJSON output) |
--page-limit <N> |
--dry-run for destructive operations--sanitize for PII/content safety screeningzsh! expansion: Sheet ranges like Sheet1!A1 contain ! which zsh interprets as history expansion. Use double quotes with escaped inner quotes instead of single quotes:
# WRONG (zsh will mangle the !)
gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10'
# CORRECT
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
JSON with double quotes: Wrap --params and --json values in single quotes so the shell does not interpret the inner double quotes:
gws drive files list --params '{"pageSize": 5}'
https://github.com/googleworkspace/clihttps://github.com/googleworkspace/cli/issuesWeekly Installs
8.1K
Repository
GitHub Stars
22.6K
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.4K
opencode7.3K
gemini-cli7.3K
cursor7.3K
github-copilot7.3K
amp7.3K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
| Max pages when using --page-all (default: 10) |
--page-delay <MS> | Delay between pages in ms (default: 100) |