Skip to content

Print secret using gcloud

Why

When working with GCP secrets, sometimes you need to print them on the command line, to be used in other commands

How

You will need to know the below before

  • Secret name
  • Secret project
gcloud secrets versions access latest --secret=<secret name> --project=<Secrets project>

Want to make this site better? Open a PR or help fund hosting costs