tencent cloud

Feedback

Generating and Modifying Configuration Files - config

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

    Command Syntax

    The config command is used to generate and modify the configuration file.

    ./coscli config [command] [flag]
    
    Note:

    • After setting the configuration items correctly, you can run ./coscli config show to view the configuration.
    • For other common options of this command (such as switching bucket and user account), see Common Options.

    config includes the following sub-commands:

    Command Description
    add Adds a new bucket configuration.
    delete Deletes an existing bucket configuration.
    init Generates the configuration file interactively.
    set Modifies one or more configuration items in the base group of the configuration file.
    show Prints information in a specific configuration file.

    config and its sub-commands include the following optional flags:

    Flag Abbreviation Flag Name Description
    -c --config-path Path of the configuration file to use

    The config add sub-command includes the following optional flags:

    Flag Abbreviation Flag Name Description
    -a --alias Bucket alias
    -b --bucket Bucket name
    -r --region Region of the bucket

    The config delete sub-command includes the following optional flags:

    Flag Abbreviation Flag Name Description
    -a --alias Bucket alias

    The config set sub-command includes the following optional flags:

    Flag Abbreviation Flag Name Description
    -i --secret_id Secret ID
    -k --secret_key Secret key
    -t --token Token

    Examples

    Adding a new bucket configuration

    ./coscli config add -b examplebucket3-1250000000 -r ap-chengdu -a bucket3
    

    Deleting an existing bucket configuration

    ./coscli config delete -a bucket3
    

    Modifying session-token in the default configuration file

    ./coscli config set -t test-token123
    

    Printing information in a specific configuration file

    ./coscli config show -c /your/config/path.yaml
    
    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