google-workspace-cli-installer-guide
БесплатноБез исполняемых скриптовНе проверенInteractive step-by-step installer for the Google Workspace CLI (gws) on macOS, Linux, WSL, OR native Windows (Git Bash / MINGW64). From a clean machine…
от BenAIOS★ 90 звёзд на GitHubОб этом скилле
Google Workspace CLI Installer Guide
You are guiding a user through a first-time install of the Google Workspace CLI (gws) on a clean machine. This is a real interactive setup with real shell calls. Don't rush. Verify every step before moving on. Be patient with the Cloud Console clicks - that's where most users fumble.
Realistic time: 15-20 minutes if everything goes smoothly, 30-45 minutes for a first-time GCP user (Terms of Service + manual OAuth client creation add the extra time). Tell the user this upfront.
Always assume the user wants to install the CLI. Don't pitch an MCP alternative or ask if they'd prefer one - just install.
Pre-flight: detect platform and confirm shell access
Run all checks before doing anything. If a check fails, STOP and surface it - don't try to recover by skipping.
Check 1: Bash is available
which echo
If this errors, the agent doesn't have shell access. Stop and ask the user to run from a real shell (Claude Code in terminal / IDE / desktop app).
Check 2: Detect platform
uname -s
Branch:
Darwin→ macOSLinux→ check/proc/versionfor "microsoft" → if found, WSL; else LinuxMINGW*/MSYS*/CYGWIN*→ Windows (Git Bash / MINGW64)- anything else → stop and ask user
Save the platform - every subsequent step branches on it.
Check 3: Write access to ~/.config/
mkdir -p ~/.config && touch ~/.config/.test && rm ~/.config/.test
If this fails, surface the error.
(Removed in this version: the old "do you actually want to do this - or use MCP?" pre-flight. Always proceed with the install.)
Step 1: Package manager
Branch by platform.
macOS
which brew
If missing, install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After install, follow the printed instructions to add brew to $PATH. Apple Silicon:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
Intel Macs use /usr/local/bin/brew instead.
Linux / WSL
Use the system package manager (apt, dnf, etc.). Skip Homebrew - it's uncommon on Linux.
Windows (native, Git Bash / MINGW64)
winget --version
Should be v1.0+. If missing, the user installs App Installer from Microsoft Store. Otherwise, no setup needed.
Step 2: Install Google Cloud SDK (gcloud)
which gcloud
If missing, branch by platform.
macOS
brew install --cask google-cloud-sdk
Linux / WSL
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
Or use the distro-native packages from the official Cloud SDK install instructions.
Windows
From PowerShell:
winget install --id Google.CloudSDK --silent --accept-source-agreements --accept-package-agreements --disable-interactivity
This is a large install (~500 MB). Be patient.
Verify
gcloud --version
Should print Google Cloud SDK <version> plus components.
Windows-specific gotchas (read these - they bite every install)
Gotcha 1: PATH doesn't refresh in the current shell. After winget install, an existing Git Bash / PowerShell session still won't see gcloud. Either restart the shell, or add the path manually for the session:
export PATH="/c/Users/<you>/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:$PATH"
Gotcha 2: "Python was not found" error. If gcloud --version errors with "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases", the Microsoft Store python.exe alias is intercepting gcloud's Python call. The Cloud SDK ships with its own bundled Python - point gcloud at it:
export CLOUDSDK_PYTHON="/c/Users/<you>/AppData/Local/Google/Cloud SDK/google-cloud-sdk/platform/bundledpython/python.exe"
For a permanent fix, the user can either disable the python.exe execution alias in Settings → Apps → Advanced app settings → App execution aliases, or set CLOUDSDK_PYTHON permanently via setx.
Tip for the agent: persist these env vars to a file (e.g. /tmp/gws-session-path.sh) and source it at the start of every Bash call, since each Bash tool call starts a fresh shell.
Step 3: Install Google Workspace CLI (gws)
The npm path works on every platform - use it universally.
which gws || npm install -g @googleworkspace/cli
Verify:
gws --version
Should print gws 0.X.X and This is not an officially supported Google product.
(macOS users can try brew install googleworkspace-cli if available in their tap - but npm install -g @googleworkspace/cli is the simpler universal path and also bundles native binaries.)
Step 4: Pick which APIs to enable
Don't skip this conversation. Ask
Установить google-workspace-cli-installer-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл google-workspace-cli-installer-guide?
Interactive step-by-step installer for the Google Workspace CLI (gws) on macOS, Linux, WSL, OR native Windows (Git Bash / MINGW64). From a clean machine: detects platform, installs the package manager + Google Cloud SDK + gws CLI, helps accept GCP Terms of Service, creates a GCP project, enables the Workspace APIs the user picks, walks them through the Google Auth Platform consent screen + Desktop OAuth client (handling the multi-account-in-Chrome edge case), launches the OAuth login flow, verifies with a real Gmail call, and runs a tailored first-use proof-of-concept. Use whenever the user wants to install or set up the Google Workspace CLI / gws - phrases like "install gws", "set up Google Workspace CLI", "install gcloud for gws", "install Google Workspace CLI from scratch", "set up gws on my machine", "I want to use Google Workspace from my terminal", or any variation of onboarding onto the gws CLI from a clean state.
Как установить скилл google-workspace-cli-installer-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-workspace-cli-installer-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic