All Products
Search
Document Center

Object Storage Service:Common commands

Last Updated:Jun 02, 2026

Lists all commands available in ossutil 1.0 for managing OSS resources from the command line.

List of common commands

The following table lists the ossutil 1.0 commands and their descriptions.

Command

Description

access-monitor

Configures access tracking.

appendfromfile

Appends content to an existing appendable object.

bucket-cname

Creates a CNAME ownership verification token and manages CNAME configurations for a bucket.

bucket-encryption

Manages server-side encryption rules for a bucket.

bucket-policy

Manages bucket policies.

bucket-tagging

Manages bucket tags.

bucket-versioning

Preserves existing objects as previous versions when they are overwritten or deleted after versioning is enabled.

cat

Displays object content.

config

Creates a configuration file to store OSS access information.

cors (cross-origin resource sharing)

Manages CORS rules for a bucket.

cors-options

Sends HTTP OPTIONS requests to check whether specific cross-origin requests are allowed.

cp

Uploads, downloads, or copies objects.

create-symlink (Create symbolic link)

Creates a symbolic link to a source object.

du

Queries total object size in a bucket or directory.

getallpartsize

Queries part sizes in incomplete multipart uploads.

hash

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

help

Displays help for a command.

inventory

Manages bucket inventories.

lcb

Lists OSS on CloudBox buckets in the current account.

lifecycle

Manages lifecycle rules.

listpart

Lists parts of incomplete multipart uploads.

logging

Manages logging configurations for a bucket.

lrb (List buckets in a region)

Lists buckets in one or more regions, returning details such as name, creation time, storage class, and bucket count.

ls (List buckets, objects, or parts)

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

mb

Creates a bucket.

mkdir (create a directory)

Creates a directory.

object-tagging

Manages object tags.

probe

Detects network connectivity issues between the local client and OSS, checks upload and download bandwidth, and obtains local symlink status.

read-symlink (read symbolic links)

Queries symlink details, including ETag and last modified time.

referer

Manages hotlink protection configurations for a bucket.

replication

Manages data replication rules, including cross-region replication (CRR) and same-region replication (SRR).

request-payment

Enables pay-by-requester for a bucket.

resource-group

Manages resource group assignments for a bucket.

Restore Files

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

revert-versioning

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

rm

Deletes objects, parts, or buckets to avoid unnecessary charges.

set-acl (Set or modify ACLs)

Manages ACLs for buckets or objects.

set-meta (Manage object metadata)

Manages object metadata.

sign (generate a signed URL)

Generates a signed URL for third-party download or preview of an object.

stat (View bucket and object information)

Queries bucket or object information.

style

Configures image styles for a bucket.

sync

Syncs local files to OSS, OSS objects to your computer, or objects between same-region buckets.

update

Updates ossutil to the latest version.

website

Manages static website hosting configurations for a bucket.

worm (retention policy)

Configures retention policies for a bucket. During the retention period, you can only upload or read objects. Modification and deletion are blocked until the period ends.