Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 698 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 698 Bytes

gwhere

As in, "Gee, where is that bucket anyways?"

Also as in, "Google, where did I put that bucket?"

Mini Cli tool to remind you which GCP project a storage bucket is in.

Installation

With Homebrew:

brew tap samwheating/samwheating
brew install gwhere

Usage

gwhere <bucket>

You'll need stat access to the bucket and access to its containg project.

Why does this exist?

Previously it took me two gsutil / gcloud commands to get the project ID of one of my buckets. I had to do this on at least two separate occasions this year so it was becoming a significant time sink.

Couldn't this just be done with Bash / gcloud / jq / etc?

Probably, yeah.