ossutil lets you manage OSS data from the command line on Windows, Linux, and macOS.
Upgrade to ossutil 2.0
We recommend ossutil 2.0. For information about how to quickly install and use ossutil, see Install ossutil.
Key features of ossutil 2.0
-
New command syntax: Supports multi-level commands, including API-level commands (
ossutil api put-bucket-acl) and high-level commands (ossutil config). -
Simplified configuration: Specify only the AccessKey ID, AccessKey secret, and region ID for basic setup. Use the
--profileparameter to manage multiple configuration files. -
Rich filtering: Filter by path, file size, last modified time, and object metadata in batch commands such as
ls,cp, andrm. -
Flexible output: Set output format to JSON, YAML, or XML with
--output-format. Use--output-queryto filter output fields. -
Enhanced security: Pass sensitive parameters through environment variables to avoid exposing keys in the command line. Use
--dry-runto verify commands before execution.
Install ossutil
For more information about how to download and install ossutil, see Install ossutil.
Configure ossutil
For more information about how to configure ossutil, see Configure ossutil.
Common commands
The following table lists common ossutil commands.
|
Command |
Description |
|
Specifies the access tracking state of a bucket. |
|
|
Appends content to existing appendable objects. |
|
|
Queries the CNAME configurations of a bucket. |
|
|
Manages bucket encryption configurations. |
|
|
Manages bucket policy configurations. |
|
|
Manages bucket tagging configurations. |
|
|
Adds or queries bucket versioning configurations. |
|
|
Exports object content to ossutil. |
|
|
Creates a configuration file to store OSS access information. |
|
|
Manages CORS configurations for a bucket. |
|
|
Tests whether a bucket allows a specified cross-origin request. |
|
|
Uploads, downloads, or copies objects. |
|
|
Creates a symbolic link. |
|
|
Queries the storage usage of a specified bucket, object, or directory. |
|
|
Queries part sizes of incomplete multipart uploads in a bucket. |
|
|
Calculates the CRC-64 or MD5 hash of a local file. |
|
|
Displays help information for a command. |
|
|
Manages bucket inventory configurations. |
|
|
Manages bucket lifecycle configurations. |
|
|
Lists parts of an incomplete multipart upload for an object. |
|
|
Manages bucket logging configurations. |
|
|
Lists the buckets that are located in a region or multiple regions. |
|
|
Lists buckets, objects, or parts. |
|
|
Creates a bucket. |
|
|
Creates a directory in a bucket. |
|
|
Manages object tagging configurations. |
|
|
Monitors OSS access and troubleshoots upload/download issues. |
|
|
Reads the description of a symbolic link. |
|
|
Manages bucket hotlink protection configurations. |
|
|
Manages Cross-Region Replication (CRR) configurations for a bucket. |
|
|
Manages pay-by-requester configurations for a bucket. |
|
|
Manages bucket resource group configurations. |
|
|
Restores an object from the frozen state to the readable state. |
|
|
Recovers a deleted object to its most recent version. |
|
|
Deletes buckets, objects, or parts. |
|
|
Configures the access control list (ACL) for a bucket or an object. |
|
|
Configures the metadata of an uploaded object. |
|
|
Generates a signed URL for an object to share with third parties. |
|
|
Obtains the description of a bucket or object. |
|
|
Configures image styles. |
|
|
Synchronizes local files to OSS, OSS objects to local disks, or objects between OSS paths. |
|
|
Updates the ossutil version. |
|
|
Manages static website hosting, redirection, and back-to-origin configurations for a bucket. |
|
|
Queries the retention policies of a bucket. |
View options
For more information about the command-line options, see View options.
FAQ
For more information, see FAQ.