gsutil cp report.pdf gs://my-bucket/

Category: Google Cloud & Workspace

gsutil cp report.pdf gs://my-bucket/

Upload a file to a bucket

Copies the local file report.pdf into my-bucket, where it becomes an object addressable at gs://my-bucket/report.pdf. The file keeps its base name unless you give a different destination name. Copy whole directories with the -r flag, or use -m for parallel speed on many files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.