Google Cloud CLI (gcloud) · Storage, secrets and logs
Store a secret
Create a secret from a file.
gcloud secrets create my-secret --data-file ./secret.txt
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
- Read a secret
- Read logs
- List Cloud SQL instances
All storage, secrets and logs commands · Google Cloud CLI (gcloud) cheatsheet