[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],null,["# gsutil tool\n\n| **Important:** gsutil is not the recommended CLI for Cloud Storage. [Use\n| `gcloud storage`](/storage/docs/discover-object-storage-gcloud) commands in the Google Cloud CLI instead.\n\ngsutil is a Python application that lets you access Cloud Storage from the\ncommand line. You can use gsutil to do a wide range of bucket and object\nmanagement tasks, including:\n\n- Creating and deleting buckets.\n- Uploading, downloading, and deleting objects.\n- Listing buckets and objects.\n- Moving, copying, and renaming objects.\n- Editing object and bucket ACLs.\n\ngsutil performs all operations, including uploads and downloads, using HTTPS\nand transport-layer security (TLS).\n\nShould you use gsutil?\n----------------------\n\nGenerally, you should [use `gcloud storage` commands](/storage/docs/discover-object-storage-gcloud) instead of `gsutil`\ncommands:\n\n- The gsutil tool is a legacy Cloud Storage CLI and minimally\n maintained.\n\n- The gsutil tool does not support working with newer Cloud Storage\n features, such as [soft delete](/storage/docs/soft-delete) and [managed folders](/storage/docs/managed-folders).\n\n- `gcloud storage` commands require less manual optimization in order to achieve\n the fastest upload and download rates.\n\n### Migrating to the gcloud CLI\n\nIf you are a gsutil user wanting to migrate to the gcloud CLI, you\nshould first check if you're using a standalone version of gsutil by running\nthe following command: \n\n```\ngsutil version -l\n```\n\n- If the result of the command includes `using cloud sdk: False`, then you are\n using a standalone version of gsutil. To migrate to the gcloud CLI,\n start by [Installing the gcloud CLI](/sdk/docs/install).\n\n- If the result of the command includes `using cloud sdk: True`, then you\n already have the gcloud CLI installed.\n\nOnce the gcloud CLI is installed, you can use `gcloud storage`\ncommands just like you use `gsutil` commands. The following resources can help\nyou get started:\n\n- Explore `gcloud storage` commands by following the quickstart\n [Discover object storage with the gcloud tool](/storage/docs/discover-object-storage-gcloud).\n\n- Read the [`gcloud storage` reference](/sdk/gcloud/reference/storage).\n\n- Review the [Shim for running `gcloud storage`](/storage/docs/gsutil/addlhelp/ShimforRunninggcloudstorage), which documents\n functionality that's not available in `gcloud storage` commands.\n\nSyntax for accessing resources\n------------------------------\n\ngsutil uses the prefix `gs://` to indicate a resource in Cloud Storage: \n\n```\ngs://BUCKET_NAME/OBJECT_NAME\n```\n\nIn addition to specifying exact resources, gsutil supports the use of\n[wildcards](/storage/docs/wildcards) in your commands.\n\nBuilt-in help\n-------------\n\ngsutil contains thorough built-in help about every command as well as a number\nof topics, which you can list and read with the `gsutil help` command.\n\nTo get information about a specific command or topic, use `gsutil help` followed\nby the intended command or topic name. For example, `gsutil help cp` and\n`gsutil help options` are a command help page and a topic help page,\nrespectively.\n\nTo get information about your gsutil installation, use the `gsutil version`\ncommand: \n\n```\ngsutil version -l\n```\n\nUsage statistics\n----------------\n\nDuring the installation process, you can opt-in to tracking usage statistics\nwhich helps improve the gsutil tool. If you subsequently decide that you want to\ndisable these usage statistics, see [Usage statistics](/sdk/docs/usage-statistics).\n\nAbout gsutil\n------------\n\ngsutil is an open-source project. To download the developer version of gsutil\nor [volunteer to help develop gsutil](https://github.com/GoogleCloudPlatform/gsutil/blob/master/gslib/addlhelp/dev.py), visit the\n[gsutil project](https://github.com/GoogleCloudPlatform/gsutil/) on GitHub.\n\n### Limitations\n\n- When using gsutil with Windows, commands that use the `-m` global flag cannot be canceled using `Ctrl-C`.\n\nWhat's next\n-----------\n\n- [Install gsutil](/storage/docs/gsutil_install#install).\n- See community discussion in [gsutil Stack Overflow questions](http://stackoverflow.com/questions/tagged/google-cloud-storage+gsutil)."]]