Google Cloud CLI (gcloud) · Storage, secrets and logs
Read a secret
Print the latest version of a Secret Manager secret.
gcloud secrets versions access latest --secret my-secret
Caution: This prints the secret in your terminal.
Official Google Cloud CLI (gcloud) documentation
More storage, secrets and logs commands
- List buckets or objects
- Copy files to or from a bucket
- Sync a folder with a bucket
- Store a secret
- Read logs
- List Cloud SQL instances
All storage, secrets and logs commands · Google Cloud CLI (gcloud) cheatsheet