tencent cloud

Feedback

Creating a Bucket - mb

Last updated: 2022-05-09 14:18:32

    The mb command is used to create a bucket.

    Command Syntax

    ./coscli mb cos://<BucketName-APPID> -r <Region> [flag]
    

    mb includes the following optional flags:

    Flag Abbreviation Flag Name Description
    None BucketName-APPID Customizes the bucket name, such as examplebucket-1250000000
    -r --region Indicates the region of the bucket
    Note:

    • To use the md command to create a bucket in COSCLI, you need to run the config add command to update the bucket configuration in the configuration file after running the md command successfully.
    • For other common options of this command (such as switching bucket and user account), see Common Options.

    Examples

    // Create the bucket3 bucket.
    ./coscli mb cos://bucket3-1250000000 -r ap-chengdu
    // Update the configuration file.
    ./coscli config add -b bucket3-1250000000 -r ap-chengdu -a bucket3
    // After the update, you can access the bucket at cos://bucket3.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support