ossutil is a command-line tool that is used in Windows, Linux, or macOS to manage data in OSS. This tool provides a wide range of convenient and simple commands to manage objects and buckets.
- Bucket management, such as creating, listing, and deleting buckets.
- Object management, such as uploading, downloading, listing, copying, and deleting objects.
- Part management, such as listing and deleting parts.
For more information about how to download and install ossutil, see Download and installation.
Commonly used commands
|appendfromfile||Uploads a local file to an appendable object in OSS.|
|bucket-encryption||Adds, modifies, queries, or deletes encryption configurations for a bucket.|
|bucket-policy||Adds, modifies, queries, or deletes bucket policy configurations for a bucket.|
|bucket-tagging||Adds, modifies, queries, or deletes tagging configurations for a bucket.|
|cat||Exports object content to ossutil.|
|config||Generates a configuration file to store OSS access information.|
|cors||Adds, modifies, queries, or deletes cross-origin resource sharing (CORS) configurations for a bucket.|
|cors-options||Tests whether a bucket allows a specified cross-origin request.|
|cp||Uploads, downloads, or copies objects.|
|create-symlink||Creates a symbolic link (also known as a soft link).|
|du||Obtains the storage size of a specified bucket, object, or folder.|
|getallpartsize||Obtains the total size of all parts in a bucket, and the size of each part that has not been uploaded.|
|hash||Calculates the CRC64 or MD5 value of a local file.|
|help||Obtains help information about a command. We recommend that you use the help command to obtain information about a specified command.|
|lifecycle||Adds, modifies, queries, or deletes lifecycle configurations for a bucket.|
|listpart||Lists the parts that have not been uploaded for a specified object.|
|logging||Adds, modifies, queries, or deletes logging configurations for a bucket.|
|ls||Lists buckets, objects, or parts.|
|mb||Creates a bucket.|
|mkdir||Creates a directory in a bucket.|
|object-tagging||Adds, modifies, queries, or deletes tagging configurations for an object.|
|probe||Monitors access to OSS, and troubleshoots problems caused during the upload and download process by network faults or incorrect parameter settings.|
|read-symlink||Reads the description of a symbolic link object.|
|referer||Adds, modifies, queries, or deletes hotlink protection configurations for a bucket.|
|restore||Restores a single object from the frozen state to the readable state.|
|request-payment||Configures or queries pay-by-requester configurations for a bucket.|
|rm||Deletes buckets, objects, or parts.|
|set-acl||Configures the ACL for a bucket or object.|
|set-meta||Configures the metadata of an uploaded object.|
|sign||Generates signed URLs for third-party users to access objects in a bucket.|
|stat||Obtains the description of a specified bucket or object.|
|update||Updates the ossutil version.|
|website||Adds, modifies, queries, or deletes static website hosting and back-to-origin configurations for a bucket.|