This guide shows the recommended way to install gog (the Google Workspace CLI from steipete/gogcli) on Windows, verify your PATH, complete first auth, and run a successful test command.
gog is a script-friendly CLI for Google services like Gmail, Calendar, Drive, Docs, Sheets, Contacts, and Tasks. It supports multiple accounts, JSON output, and OAuth/service-account auth modes.
gws (@googleworkspace/cli). This guide is specifically for the gog command from steipete/gogcli.client_secret_*.json).gogcli_*_windows_amd64.zip (most PCs)gogcli_*_windows_arm64.zip (ARM PCs)gog.exe to a stable folder, for example:C:\Tools\gog\gog.exe[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Tools\gog", "User")
Close and reopen PowerShell after updating PATH.
Use this if you want the latest source build.
git clone https://github.com/steipete/gogcli.git
cd gogcli
# Requires Go + make-compatible tooling
make
After build, copy the produced Windows executable to a PATH folder (for example C:\Tools\gog).
where gog
gog --version
gog --help
If these commands work, installation + PATH are good.
gog auth credentials C:\Users\<your-user>\Downloads\client_secret_XXXXX.json
gog auth add you@gmail.com
$env:GOG_ACCOUNT="you@gmail.com"
gog auth status
gog gmail labels list
gog is not recognizedgog.exe exists where you expect.echo $env:Path and confirm your gog folder is listed.gog auth add you@gmail.com --services user --manual
gog auth add you@gmail.com --services gmail,drive --force-consent
gws (Google Workspace CLI npm package)npm i -g @googleworkspace/cli
gws --help
gog --version returns a version.gog auth status shows authenticated account/services.gog gmail labels list) succeeds.