The configuration supports the CLI environment displayed in Chinese
To configure the CLI environment that supports Chinese display, execute the following commands for configuration:
$ export LANG=en_US.UTF-8
Note Execute the command
$ localeto view the language support of the current environment, if not
LANG=en_US.UTF-8, execute the above-mentioned command for modification.
(Optional) Configuration of AK/SK information
Before the BCE CLI tool is used, it is recommended to set Access Key and Secure Key. You can set AK and SK information by -c/--configure.
$ bce -c [<conf-path>] $ BOS Access Key ID [None]: Enter Your AK $ BOS Secret Access Key [None]: Enter Your SK $ Default region name [bj]: Enter Your region $ Default domain [bj.bcebos.com]: Enter Your host
<conf-path>is a local file directory. When a user has multiple accounts of Baidu AI Cloud, he can write the configuration files of different accounts to different directories by specifying
<conf-path>. When executing the command, the user can specify the directory to select the configuration of the corresponding account.
- If the
<conf-path>is not specified, CLI writes the configuration file automatically under the current master directory
~/.bceupon the completion of configuration; if the
<conf-path>is specified, the configuration file is written to the specified directory automatically.
- Even without setting AK/SK, you can still access the CDN service through BCE CLI.
- You do not have to set Region and domain for the CDN service. The default domain of CDN is cdn.baidubce.com.