mb
command is used to create a bucket../coscli mb cos://<BucketName-APPID> -e <endpoint> [flag]
mb
command, you need to add the global flag -e
or --endpoint
to specify the region where the bucket resides.mb
includes the following parameters:Parameter Format | Description | Example |
cos://<BucketName-APPID> | Customizes the bucket name | cos://examplebucket-1250000000 |
mb
includes the following optional flags:Flag Abbreviation | Flag Name | Description |
-h | --help | Views the usage of this command. |
-r | --region | Indicates the region of the bucket |
mb
command to successfully create a bucket, we recommend that you add information about the bucket in the configuration file, so that you can use the bucket alias for quick operations. For command usage, see the following example.// Create the bucket3 bucket../coscli mb cos://bucket3-1250000000 -e cos.ap-chengdu.myqcloud.com
// Update the configuration file../coscli config add -b bucket3-1250000000 -e cos.ap-chengdu.myqcloud.com -a bucket3// After the update, you can access the bucket at cos://bucket3.
Was this page helpful?