shell-plugins icon indicating copy to clipboard operation
shell-plugins copied to clipboard

Add Google Cloud Platform (gcloud) shell plugin

Open mlsimon734 opened this issue 9 months ago • 2 comments

Summary

  • Adds a new shell plugin for Google Cloud Platform with support for gcloud, gsutil, and bq CLI tools
  • Credentials are provisioned via a temporary JSON file with GOOGLE_APPLICATION_CREDENTIALS, plus automatic CLOUDSDK_CORE_PROJECT and CLOUDSDK_CORE_ACCOUNT resolution from the credential
  • Imports from ~/.config/gcloud/application_default_credentials.json and the GOOGLE_APPLICATION_CREDENTIALS env var
  • Supports both service_account and authorized_user credential types

Test plan

  • [x] make gcloud/validate — all checks pass
  • [x] make test — gcloud tests pass (17 scenarios covering provisioner, importer, and NeedsAuth)
  • [x] make gcloud/build — builds and installs locally
  • [x] op plugin init gcloud — end-to-end verification (requires 1Password CLI)

mlsimon734 avatar Feb 27 '26 10:02 mlsimon734

@mrjones2014 is this repo still being actively maintained? Just pinging since you were the last to merge a PR.

mlsimon734 avatar Mar 08 '26 03:03 mlsimon734

To be honest I haven't been able to get anything merged in a long time so I've stopped using Shell Plugins in my own setup.

I only really used the GitHub one so I just implemented it in Nix+bash directly in my dotfiles. Its actually a bit more flexible that way anyway.

https://github.com/mrjones2014/dotfiles/blob/03cd7e382af024016670e09f6c7d3fadb0b5ffb6/home-manager/components/_1password-shell.nix#L24-L44

mrjones2014 avatar Mar 08 '26 15:03 mrjones2014