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

All storage, secrets and logs commands · Google Cloud CLI (gcloud) cheatsheet

Was this page helpful?