macOS
brew install googleworkspace-clilocal Homebrew formula metadata
sudo port install googleworkspace-cliMacPorts ports tree · office/googleworkspace-cli/Portfile · 来源: api.github.com
安装
brew install googleworkspace-clilocal Homebrew formula metadata
sudo port install googleworkspace-cliMacPorts ports tree · office/googleworkspace-cli/Portfile · 来源: api.github.com
sudo pacman -S googleworkspace-cliArch Linux sync databases · googleworkspace-cli · 来源: geo.mirror.pkgbuild.com
nix profile install nixpkgs#gwsnixpkgs package indexes · pkgs/by-name/gw/gws/package.nix · 来源: api.github.com
winget install --id Google.WorkspaceCLI -eWindows Package Manager source index · Google.WorkspaceCLI · 来源: cdn.winget.microsoft.com
概览
CLI for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more
历史
Google Workspace CLI, invoked as `gws`, is a command-line tool for Google Workspace APIs such as Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin. Its README describes a dynamic command surface built from Google's Discovery Service, structured JSON output, and included agent skills.
The GitHub repository was created in March 2026 and began with rapid 0.x releases. The README explicitly says the project is not an officially supported Google product while placing it in the Google Workspace developer ecosystem.
The tool is written for both human CLI users and AI-agent workflows. Its installation paths include prebuilt GitHub release binaries, npm distribution as `@googleworkspace/cli`, source builds with Cargo, Nix, and Homebrew.
Because the project is young, its adoption history is mainly packaging and workflow positioning rather than a long ecosystem record. The official README documents Homebrew installation, npm installation, a Nix flake, Gemini CLI extension setup, and Skills installation from the repository.
Typical use starts with `gws auth setup` or `gws auth login`, then commands such as listing Drive files, creating Sheets resources, sending Chat messages, or inspecting generated schemas. The README documents OAuth credential files, exported credentials for headless use, pre-obtained access tokens, and environment-variable precedence.
For package nerds, gws is interesting because it packages a broad API family as a generated CLI rather than hand-written subcommands. It also reflects a 2026-era packaging pattern: one binary, npm bootstrap, Homebrew formula, Nix flake, structured JSON output, and agent skill bundles.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Credential-bearing paths to review before unattended agent runs.
~/.config/gws/client_secret.json~/.config/gws/credentials.json$GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gws | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/googleworkspace/cli
安装元数据
| 软件包键 | brew:googleworkspace-cli |
|---|---|
| 版本 | 0.22.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/googleworkspace-cli |
| 主页 | https://developers.google.com/workspace |
| 仓库 | https://github.com/googleworkspace/cli |
| 上游文档 | https://developers.google.com/workspace |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/googleworkspace/cli/archive/refs/tags/v0.22.5.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | googleworkspace-cli |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
googleworkspace-cli 0.22.5-1
Command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more
https://developers.google.com/workspace
sudo pacman -S googleworkspace-cligoogleworkspace-cli
sudo port install googleworkspace-cligws
sudo port install gwsgws
nix profile install nixpkgs#gwsGoogle.WorkspaceCLI
winget install --id Google.WorkspaceCLI -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.