Files
nexus/wiki/sources/GOG-CLI-安装配置指南.md
2026-04-21 16:03:27 +08:00

50 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "GOG-CLI 安装配置指南"
type: source
tags: [gog-cli, macos, google-workspace, oauth]
date: 2026-04-19
---
## Source File
- [[raw/Skills/GOG-CLI-安装配置指南.md]]
## Summary
- 核心主题:在 macOS 系统上安装和配置 gog CLI通过命令行管理 Google WorkspaceGmail、Google Calendar、Google Drive、Google Contacts、Google Docs、Google Sheets
- 问题域Google API 集成、OAuth 认证、CLI 工具配置
- 方法/机制Homebrew 安装、OAuth 凭证配置、Google Cloud Console 设置、API 启用
- 结论/价值:实现 Google 六大服务的命令行化管理,提升自动化效率
## Key Claims
- gog CLI 是管理 Google Workspace 的命令行工具,支持 Gmail、Calendar、Drive、Contacts、Docs、Sheets 六大服务
- OAuth 授权需要两层配置用户身份认证OAuth+ API 服务启用API Enablement
- Google 未验证应用需要添加测试用户才能授权
## Key Quotes
> "此应用未经 Google 验证" — 首次授权时 Google 的安全限制提示
> "此应用请求访问您 Google 账号中的敏感信息" — OAuth 权限请求说明
## Key Concepts
- [[OAuth]]:开放授权协议,用于第三方应用访问用户 Google 账号
- [[Google-Cloud-Console]]Google 云平台控制台,管理 API 启用和 OAuth 凭证
- [[Gmail-API]]Google 邮件服务编程接口
- [[Calendar-API]]Google 日历服务编程接口
- [[Drive-API]]Google 云端硬盘服务编程接口
- [[API-Enablement]]Google Cloud 中启用特定 API 服务的操作
- [[测试用户]]Google OAuth 中允许未经验证的应用进行测试的账号
## Key Entities
- [[Homebrew]]macOS 包管理器,用于安装 gog CLI
- [[Google]]Google 公司,开发 gog CLI 工具
- [[gog CLI]]Google Workspace 命令行管理工具(本次创建)
- [[steipete-tap-gogcli]]gog CLI 的 Homebrew 官方仓库(本次创建)
## Connections
- [[Homebrew]] ← 安装于 ← [[GOG-CLI-安装配置指南]]
- [[Google-Cloud-Console]] ← 创建凭证于 ← [[GOG-CLI-安装配置指南]]
- [[OAuth]] ← 授权机制于 ← [[GOG-CLI-安装配置指南]]
- [[gog CLI]] ← 工具实现于 ← [[GOG-CLI-安装配置指南]]
## Contradictions
- (暂无)