Google Workspace CLI

gonzalovargas 365 points 138 comments March 05, 2026
github.com · View on Hacker News

Discussion Highlights (20 comments)

sega_sai

Interesting, but scary, given that this is not a google product. Who knows whether that breaks any TOS somehow.

tedk-42

Haha in the world of AI/MCPs, all of a sudden we have a push for companies to properly build out APIs/CLI tools.

sbinnee

I can already see all the CTOs are getting excited to plug this in their OpenClaw instances.

skybrian

Having the available commands change on you dynamically seems like an anti-pattern, but I suppose an AI can deal with it.

blondin

This is a very interesting way of building agent skills. Seems like the imperative way of orchestration/automation is making a comeback.

evanjrowley

Hoping Apple will do the same with iCloud.

avaer

Is this basically a CLI version of [1]? If so, I'm glad Google is being forward thinking about how developers actually want to use their apps. Better this than a Google dashboard, or slopped together third party libs. I know Google says they don't support it, but they'll probably support it better than someone outside of Google can support it. [1] https://workspaceupdates.googleblog.com/2025/12/workspace-st...

hsaliak

GCP Next is Apr 22-24. Hope this continues to live afer that.

loveparade

Great, i hope this becomes a trend now that agent skills want clis

betaby

I'm curious why `npm` is used to install a `rust` binary?

iosjunkie

Basically Google’s take on GAM https://github.com/GAM-team/GAM

tclancy

Interesting post from the main contributor about this (at least I assume it’s what he’s referencing) https://justin.poehnelt.com/posts/rewrite-your-cli-for-ai-ag...

internet2000

Claude Opus 4.6 couldn't figure out how to use it to write to a Google Sheet (something to do with escaping the !?) and fell back to calling the sheets API directly with gcloud auth.

mace01

Seems weird to require another tool (gcloud) to set it up, but it does look to be tightly integrated with google cloud.

pdyc

wow this will gel very well with my current project. Main hurdle i was facing was connecting with individual services via google oauth to get the data.

mmaunder

Forget the Gemini extension - Gemini CLI sucks. Forget the MCP - MCP is beyond dead. But for codex or claude cli this is a game changer. Next question is how programmatic have they made the sheets interface... because Gemini sucks at sheets.

OpenWaygate

very similar to gogcli( https://github.com/steipete/gogcli ), but in RUST

sciencesama

Would be useful if it can atleast show google drive storage in folder structure

mmaunder

Google really know how to screw up a product experience. npm install -g @googleworkspace/cli gws auth setup { "error": { "code": 400, "message": "gcloud CLI not found. Install it from https://cloud.google.com/sdk/docs/install ", "reason": "validationError" } } Which takes you to... https://docs.cloud.google.com/sdk/docs/install-sdk Where you have to download a tarball, extract it and run a shell script. I mean how hard is it to just imitate everyone else out there and make it a straight up npm install?

epicprogrammer

I've built a few internal tools using the Workspace APIs, and while they are powerful, the rate limits on the Drive API can be brutal if you are doing bulk operations. Does this repository handle automatic backoff and retries, or do we need to wrap it ourselves?

Semantic search powered by Rivestack pgvector
3,471 stories · 32,344 chunks indexed