gcloud storage cp report.pdf gs://my-bucket/

Category: Google Cloud & Workspace

gcloud storage cp report.pdf gs://my-bucket/

Copy a file with the unified gcloud storage tool

Uploads report.pdf using the newer gcloud storage command family, which offers the same operations as gsutil with better performance and progress reporting. Flags like -r and -m are supported, and gcloud storage ls, rsync and rm cover the rest of the workflow. Prefer this on fresh projects; gsutil still works everywhere.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.