Quick install of the Google Workspace CLI on a second machine by reusing existing OAuth credentials.

CCM score
67 of 100
skills.sh installs
1.1K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers installing gws via npm, restoring client_secret.json, authenticating, and installing 90+ agent skills
  • Provides three credential options: pasted JSON, a local file path, or GOOGLE_WORKSPACE_CLI_CLIENT_ID and GOOGLE_WORKSPACE_CLI_CLIENT_SECRET environment variables
  • Extracts the long OAuth consent URL to /tmp/gws-auth-url.txt so it can be opened without line-wrap breakage
  • Requires a client_secret.json from a prior gws-setup; covers troubleshooting for expired tokens and missing skills

Install

$ npx -y skills add jezweb/claude-skills --skill gws-install -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Google Workspace CLI — Quick Install

Install gws on an additional machine using OAuth credentials from a previous setup. Produces an authenticated CLI with all agent skills ready to use.

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.

Workflow

Step 1: Pre-flight Checks

which gws && gws --version
ls ~/.config/gws/client_secret.json
gws auth status

If already authenticated with the right scopes, skip to Step 4.

Step 2: Install the CLI

npm install -g @googleworkspace/cli
gws --version

Step 3: Set Up Credentials

Ask the user to provide their client_secret.json. Three options:

Option A — Paste the JSON content:

Ask the user to paste the JSON. Write it to ~/.config/gws/client_secret.json:

mkdir -p ~/.config/gws

Expected format:

Details

Repository
github.com/jezweb/claude-skills
Categories
Productivity & Notes, Workflow Automation, CLI & Terminal
First seen
May 16, 2026

More from jezweb/claude-skills

All 64

Similar to Gws Install

More Productivity & Notes