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?
The readme is AI generated, so I am assuming the lack of effort and hand-off to the bots extends to the rest of this repository.
The contributors are a Google DRE, 5 bots / automating services, and a dev in Canada.
You don't need to use gcloud if you already have:
1. A GCP project (needed for OAuth) 2. Enabled APIs in said project
gcloud cli will probably also require you to make a Google Cloud project and stuff by clicking around their godforsaken webui. hopefully they streamlined that, it took me a long time to figure out when i wanted to write some JS in my spreadsheet