Google Cloud CLI (gcloud) · Storage, secrets and logs
Copy files to or from a bucket
Copy a local file to a bucket. Add --recursive for folders.
gcloud storage cp file.txt gs://my-bucket/
Official Google Cloud CLI (gcloud) documentation
More storage, secrets and logs commands
- List buckets or objects
- Sync a folder with a bucket
- Read a secret
- Store a secret
- Read logs
- List Cloud SQL instances
All storage, secrets and logs commands · Google Cloud CLI (gcloud) cheatsheet