Google Workspace

google-workspace
分类编程
作者Alireza Rezvani
许可MIT
评分4.30/5
使用3.6K

/google-workspace

通过 gws CLI 进行 Google Workspace 管理。支持运行设置诊断、安全审计、浏览并执行方案,以及分析命令输出。

用法

code
/google-workspace setup [--json]
/google-workspace audit [--services gmail,drive,calendar] [--json]
/google-workspace recipe list [--persona <role>] [--json]
/google-workspace recipe search <keyword> [--json]
/google-workspace recipe run <name> [--dry-run]
/google-workspace recipe describe <name>
/google-workspace analyze [--filter <field=value>] [--group-by <field>] [--stats <field>] [--format table|csv|json]

示例

code
/google-workspace setup
/google-workspace audit --services gmail,drive --json
/google-workspace recipe list --persona pm
/google-workspace recipe search "email"
/google-workspace recipe run standup-report --dry-run
/google-workspace recipe describe morning-briefing
/google-workspace analyze --filter "mimeType=pdf" --select "name,size" --format table

脚本

  • engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_doctor.py — 预检诊断
  • engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/auth_setup_guide.py — 认证设置指南
  • engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_recipe_runner.py — 方案目录与执行器
  • engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/workspace_audit.py — 安全审计
  • engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/output_analyzer.py — JSON/NDJSON 分析器

子命令

setup

运行预检诊断和认证验证。
bash
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_doctor.py [--json]
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/auth_setup_guide.py --validate [--json]

audit

运行安全和配置审计。
bash
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/workspace_audit.py [--services gmail,drive,calendar] [--json]

recipe

浏览、搜索并执行 43 个内置的 gws 方案。
bash
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_recipe_runner.py --list [--persona <role>] [--json]
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_recipe_runner.py --search <keyword> [--json]
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_recipe_runner.py --describe <name>
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/gws_recipe_runner.py --run <name> [--dry-run]

analyze

解析、过滤并聚合任何 gws 命令的 JSON 输出。
bash
gws <command> --json | python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/output_analyzer.py [options]
python3 engineering-team/google-workspace-cli/skills/google-workspace-cli/scripts/output_analyzer.py --demo --format table

技能参考

-> engineering-team/google-workspace-cli/skills/google-workspace-cli/SKILL.md

相关命令

  • 无直接依赖(独立的 Google Workspace 模块)
技能