A simple JS CLI tool for switching Google Cloud projects



I've recently been using Google Cloud for several projects, both at work and my personal projects. One thing I found tedious, was switching between projects, I'd always forget a step and find I couldn't access my pods, because I was in the wrong data center, or the wrong project still.

So, my love of all things declarative, I decided to write a config switcher, which reads a yaml file containing your configuration, allows you to select a project, and then executes the commands to switch to that project.

This was purely for my own amusement, and laziness, but I hope it helps you, too!

$ npm install -g gcloud-switcher

$ gcloud-switch

Screenshot of Google Cloud Switcher in action

Feel free to raise an issue, PR, or just a suggestion on GitHub.