Files
nexus/wiki/sources/GOG-CLI安装配置指南.md

39 lines
1.3 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, Google Workspace, CLI, macOS]
date: 2026-03-15
---
## Source File
- [[raw/Skills/GOG-CLI-安装配置指南.md]]
## Summary
- 核心主题macOS安装配置gog CLI管理Google Workspace
- 问题域Gmail/Calendar/Drive/Contacts/Docs/Sheets命令行管理
- 方法/机制Homebrew安装 → OAuth凭证配置 → API启用 → 代理访问
- 结论/价值完整的gog CLI配置手册需要代理才能直连Google API
## Key Claims
- 安装brew install steipete/tap/gogcli
- 凭证Google Cloud Console创建OAuth客户端ID下载credentials.json到~/Library/Application Support/gogcli/
- 测试用户Google Cloud添加测试用户ishenwei@gmail.com避免"应用未经Google验证"错误
- API启用Gmail API等需要在Google Cloud Console手动Enable
- 代理必须设置HTTPS_PROXY=socks5h://127.0.0.1:10808
- 默认账号export GOG_ACCOUNT=ishenwei@gmail.com
## Key Concepts
- [[GoogleWorkspaceCLI]]gog命令行工具
- [[OAuth认证]]Google API身份验证
- [[代理配置]]gog必须走代理
## Key Entities
- [[gog]]Google Workspace CLI工具
- [[Google]]Gmail/Calendar/Drive等Google服务
## Connections
- [[GOG-CLI安装配置指南]] ← documents [[GoogleWorkspaceCLI]]
## Contradictions
- 无冲突