tencent cloud

masukan

Creating a Bucket - mb

Terakhir diperbarui: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.
    
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24