All Products
Search
Document Center

Object Storage Service:Common commands

Last Updated:Jan 17, 2025

This topic describes the common commands that you can run in ossutil 1.0.

List of common commands

The following table describes the common commands that you can run in ossutil 1.0.

Command

Description

access-monitor

Configures access tracking.

appendfromfile

Appends content to an existing appendable object.

bucket-cname

Creates a CNAME token that is used to verify the ownership of the domain names mapped to a bucket and manages CNAME configurations.

bucket-encryption

Creates, modifies, queries, or deletes the server-side encryption rules of a bucket.

bucket-policy

Creates, modifies, queries, or deletes bucket policies.

bucket-tagging

Creates, modifies, queries, or deletes the tags of a bucket.

bucket-versioning

Stores existing objects in a bucket as previous versions when they are overwritten or deleted after versioning is enabled for the bucket.

cat

Views the content of a specific object in a bucket.

config

Creates a configuration file that is used to store Object Storage Service (OSS) access information.

cors

Creates, modifies, queries, or deletes cross-origin resource sharing (CORS) rules of a bucket.

cors-options

Sends HTTP OPTIONS requests to OSS and checks whether specific cross-origin requests are allowed.

cp

Uploads, downloads, and copies objects in a bucket.

create-symlink

Creates a symbolic link to quickly open a source object.

du

Queries the total size of all objects within a bucket or a directory.

getallpartsize

Queries the size of each part in incomplete multipart upload tasks.

hash

Calculates the MD5 hash or CRC-64 of a local file.

help

Queries help information about a command.

inventory

Creates, queries, lists, or deletes bucket inventories.

lcb

Lists the OSS on CloudBox buckets within the current Alibaba Cloud account.

lifecycle

Creates, queries, lists, or deletes lifecycle rules.

listpart

Lists the parts of an object for which the multipart upload task is incomplete.

logging

Enables or disables logging for a bucket, and queries the logging configurations of a bucket.

Irb

Lists buckets within one or more regions. The command returns basic bucket information, such as bucket names, creation time, storage classes, and the number of buckets.

Is

Lists buckets, objects, and parts within the current Alibaba Cloud account.

mb

Creates a bucket.

mkdir

Creates a directory.

object-tagging

Creates, modifies, queries, or deletes the tags of an object.

probe

Detects exceptions of network connectivity between the local client and OSS, checks upload and download bandwidths, and obtains the status of local symbolic links.

read-symlink

Queries information about a symbolic link, including the ETag and last modified time.

referer

Configures hotlink protection for a bucket, and modifies, queries, or deletes the hotlink protection configurations of a bucket.

replication

Manages the data replication rules of a bucket. Data replication rules are classified into cross-region replication (CRR) and same-region replication (SRR) rules.

request-payment

Enables pay-by-requester for a bucket.

resource-group

Configures a resource group for a bucket and queries information about the resource group.

restore

Restores Archive, Cold Archive, and Deep Cold Archive objects.

revert-versioning

Restores an object in a versioning-enabled bucket to the most recent previous version.

rm

Deletes objects, parts, or buckets that you no longer require to prevent unnecessary charges.

set-acl

Configures or modifies the access control lists (ACLs) of buckets or objects.

set-meta

Configures, modifies, or deletes object metadata.

sign

Generates a signed URL for an object to allow third-party users to download or preview the object.

stat

Queries the information about buckets or objects.

style

Configures image styles for a bucket.

sync

Synchronizes local files to OSS, objects that are stored in OSS to your computer, and multiple objects at the same time between OSS buckets that reside in the same region.

update

Updates ossutil to the latest version.

website

Configures static website hosting for a bucket, and modifies, queries, or deletes the static website hosting configurations of a bucket.

worm

Configures retention policies for a bucket. Before the specified retention period ends, you can only upload objects to or read objects from the bucket. You can modify or delete objects only after the retention period ends.