# 使用 Homebrew, Nix, scoop, winget 安装 gogcli

查看 gogcli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gogcli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gogcli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gogcli
```

  证据: nixpkgs package indexes: pkgs/by-name/go/gogcli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/gogcli
```

  证据: Scoop official bucket manifest trees: bucket/gogcli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id steipete.gogcli -e
```

  证据: Windows Package Manager source index: steipete.gogcli from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gogcli
- **软件包管理器:** Homebrew
- **版本:** 0.34.2
- **来源摘要:** Google Suite CLI
- **主页:** <https://gogcli.sh>
- **仓库:** <https://github.com/openclaw/gogcli>
- **最后更新:** 2026-08-02T21:30:41Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gog (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.34.2
## 项目历史与用法

gogcli provides the gog command, a Go CLI for Google Workspace services. It is organized around task-first commands, automation-friendly output, and account-aware authentication.

The project is young compared with classic Go tools, but its official spec is unusually explicit about why it exists: to replace separate Google service CLIs with one coherent command surface.

### 项目历史

Repository history starts in December 2025 with an initial commit and early work unifying Google CLI authentication, services, and CI. Official docs describe the command as one binary for Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Meet, Apps Script, Analytics, Search Console, Contacts, Tasks, Classroom, Chat, YouTube, and Workspace admin.

The spec states that gog replaces earlier separate CLIs named gmcli, gccli, and gdcli, plus a Python contacts server conceptually, without preserving legacy command names, flags, output formats, or state migration.

### 采用历史

The official README emphasizes script, CI, and agent use through stable JSON/plain output, non-interactive mode, read-only mode, Gmail send blocking, and generated command schemas. That positions gogcli for automation rather than only interactive account administration.

Package-manager facts in the input list Homebrew, Nix, Scoop, and winget entries. That spread fits a cross-platform personal and automation CLI where installation matters on macOS, Linux, and Windows workstations.

### 使用方式

The quickstart flow asks users to create a Google Cloud project, enable APIs, create a desktop OAuth client, store client credentials with gog auth credentials, authorize an account with gog auth add, and then run service commands such as gmail search or calendar events.

The spec documents config.json under the per-user config directory, OAuth client credential JSON files, refresh tokens in OS keyring storage, and an encrypted file keyring fallback for headless or container environments.

### 为什么软件包爱好者会关心

gogcli is notable because it treats a personal productivity CLI like infrastructure: parseable stdout, documented exit behavior, non-interactive safety, generated command references, and a typed MCP server instead of a generic shell bridge.

For package curators, it is also a good example of a CLI whose packaging story must include credentials and config locations. The binary is simple to install, but the operational state lives in platform config directories and keyrings.

### 时间线

- 2025: Repository history begins with initial commits for a unified Google CLI.
- 2025: v0.1.0 release tag appears in December.
- 2026: Official docs describe task-first Google Workspace workflows, OAuth setup, generated command references, and a typed MCP server.
- 2026: Releases continue through frequent 0.x tags as service coverage and automation behavior expand.

### Related projects

- gmcli, gccli, and gdcli are named in the spec as separate CLIs that gog conceptually replaces.
- Google Workspace APIs are the service surface behind the command set.
- MCP is related through gog mcp, a typed server intended for agent clients.

### 来源

- <https://github.com/steipete/gogcli>
- <https://gogcli.sh/>
- <https://gogcli.sh/quickstart.html>
- <https://gogcli.sh/spec.html>


## 安全说明

没有找到 gogcli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

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.


## Configuration files

- Unix: $(os.UserConfigDir())/gogcli/config.json

## Credential files

- Unix: $(os.UserConfigDir())/gogcli/credentials.json, $(os.UserConfigDir())/gogcli/credentials-<client>.json, $(os.UserConfigDir())/gogcli/keyring/
## 其他软件包管理器记录

- Nix - gogcli: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gogcli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/gogcli: normalized package name match | Scoop official bucket manifest trees: bucket/gogcli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - steipete.gogcli: normalized package name match | Windows Package Manager source index: steipete.gogcli from https://cdn.winget.microsoft.com/cache/source.msix
- winget - GOG.Galaxy: installed executable or alias match | Windows Package Manager source index: GOG.Galaxy from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/gogcli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gogcli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
