Skip to content
Object transferGoogle Cloud Storage

gsutil cp

Copy files between local paths and GCS buckets.

Command
gsutil cp gs:///

Example usage

Transfer single files to or from buckets.

gsutil cp <local_file> gs://<bucket>/<object>
gsutil cp gs://<bucket>/<object> <dest_path>

Recursively upload directories, leveraging parallel transfers.

gsutil -m cp -r <local_dir> gs://<bucket>/<prefix>

Related tags

Object transfercloudstoragegsutil