Cloud Shell provides a pre-configured environment with the Alibaba Cloud CLI, enabling you to manage your Object Storage Service (OSS) resources directly from your browser without any local installation or configuration.
Overview
The Alibaba Cloud CLI provides the aliyun oss command suite to interact with OSS. These commands are a user-friendly wrapper for the powerful ossutil 1.0 tool, which is also pre-installed in Cloud Shell. By using the CLI in Cloud Shell, you can perform a wide range of operations on your OSS resources, including:
Buckets: Create, list, delete, and configure buckets.
Objects: Upload, download, copy, move, and delete objects.
Parts: List and delete parts.
Prerequisites
Before you begin, ensure you have launched Cloud Shell. You can start Cloud Shell using one of the following methods:
From the Alibaba Cloud Management Console: Click the Cloud Shell icon in the top navigation bar.

As a standalone application: Navigate directly to https://shell.aliyun.com.
To ensure security, we recommend logging on to the console and using Cloud Shell as a RAM identity (RAM user or RAM role) instead of the Alibaba Cloud account. The RAM identity must have the necessary permissions to manage the resources you intend to work with. For more information, see Identity-based policies.
When you start Cloud Shell, it automatically configures the CLI with credentials based on your logged-on identity. Do not modify or delete the default credential configuration file.
The first time you start Cloud Shell, a virtual machine (VM) instance is provisioned for you, which may take a few moments. Subsequent sessions will start faster.
You can open up to five concurrent windows. All sessions share the same underlying VM instance.
Getting started: Common examples
The following examples show how to perform common OSS operations in Cloud Shell.
Create a bucket. Use the
mb(make bucket) command. Bucket names must be globally unique. The following example creates a bucket namedvmeixmeof theStandardclass.aliyun oss mb oss://vmeixme --storage-class StandardCreate a directory in a bucket. Use the
mkdir(make directory) command. The following example creates a directory namedhorsein thevmeixmebucket.aliyun oss mkdir oss://vmeixme/horse/List OSS resources in your account. Use the
ls(list) command. The following example lists all OSS resources (buckets, objects, and parts) within your account, with the maximum number of returned results set to 20.aliyun oss ls --limited-num 20Get help. Run the
aliyun oss --helpcommand to view a list of allosscommands.To get detailed information about any command, append
helpto the command.aliyun oss [command] helpFor example, to get help for the
mkdircommand:aliyun oss mkdir help
Command reference
The following tables list all available commands for managing OSS.
Bucket commands
Command | Description |
| Creates a bucket. |
| Lists all buckets, objects, and parts in your account. |
| Deletes buckets, objects, or parts in your account. |
| Configures the access control list (ACL) for a bucket or object. |
| Manages cross-origin resource sharing (CORS) rules for a bucket. |
| Manages lifecycle rules for a bucket. |
| Manages access logging for a bucket. |
| Configures static website hosting and back-to-origin settings for a bucket. |
| Manages encryption configurations for a bucket. |
| Manages bucket policies. |
| Manages hotlink protection configurations for a bucket. |
| Manages tags for a bucket. |
| Configures the pay-by-requester mode for a bucket or queries the pay-by-requester configurations of a bucket. |
Object commands
Command | Description |
| Uploads, downloads, or copies objects. |
| Creates a logical directory (an empty object with a trailing slash). |
| Displays metadata for a specified bucket or object. |
| Generates a presigned URL for an object. |
| Displays the size of a bucket or the total size of objects under a specified directory. |
| Configures the metadata of an object. |
| Appends content to an appendable object. |
| Exports object content to stdout. |
| Manages tags for an object. |
| Restores an object from the frozen state to the readable state. |
Other commands
Command | Description |
| Displays help information for a specific command. |
| Lists parts of an incomplete multipart upload task. |
| Queries the details of all parts of an incomplete multipart upload task. |
| Calculates the local CRC-64 or MD5 hash of a file. |
| Tests whether a bucket allows a specified cross-origin request. |
| Creates a symbolic link. |
| Monitors access to OSS. You can also run this command to troubleshoot issues that are caused by network faults or invalid parameter settings during the upload and download process. |
| Reads the description of a symbolic link. |