gws-install
Agent skill fromjezweb/claude-skills
Quick install of the Google Workspace CLI (gws) on an additional machine using existing OAuth credentials. Requires client_secret.json from a previous gws-setup. Use whenever the user wants to install gws on a new computer, reinstall after a fresh OS, configure a second workstation, or says 'install gws', 'gws on new machine', 'set up gws again'.
How to install gws-install
install gws-install
# install the claude-skills pack with the skills CLI
npx skills add jezweb/claude-skills# or add only this skill to Claude Code: copy the folder
plugins/integrations/skills/gws-install/
# into
~/.claude/skills/gws-install/ (all projects)
.claude/skills/gws-install/ (one project)
1# Google Workspace CLI — Quick Install23Install `gws` on an additional machine using OAuth credentials from a previous setup. Produces an authenticated CLI with all agent skills ready to use.45**Prerequisite**: The user must have `client_secret.json` from a previous `gws-setup` (or from Google Cloud Console). If they don't have it, use the `gws-setup` skill instead.67## Workflow89### Step 1: Pre-flight Checks1011```bash12which gws && gws --version13ls ~/.config/gws/client_secret.json14gws auth status15```1617If already authenticated with the right scopes, skip to Step 4.1819### Step 2: Install the CLI2021```bash22npm install -g @googleworkspace/cli23gws --version24```2526### Step 3: Set Up Credentials2728Ask the user to provide their `client_secret.json`. Three options:2930**Option A — Paste the JSON content:**3132Ask the user to paste the JSON. Write it to `~/.config/gws/client_secret.json`:3334```bash35mkdir -p ~/.config/gws36```3738Expected format:3940```json41{42 "installed": {43 "client_id": "...",44 "project_id": "...",45 "auth_uri": "https://accounts.google.com/o/oauth2/auth",46 "token_uri": "https://oauth2.googleapis.com/token",47 "client_secret": "...",48 "redirect_uris": ["http://localhost"]49 }50}51```5253**Option B — File path:**5455If the user has the file locally (e.g. in Downloads):5657```bash58mkdir -p ~/.config/gws59cp /path/to/client_secret.json ~/.config/gws/client_secret.json60```6162**Option C — Environment variables:**6364```bash65export GOOGLE_WORKSPACE_CLI_CLIENT_ID="your-client-id"66…
Excerpt shown under the repository's MIT license.
