您可以使用 config
命令查看配置文件路径,并更新配置文件中的关键配置信息。
./tosutil config
tosutil config
无
./tosutil config
Config file url: /Users/user/.tosutilconfig
./tosutil config -interactive [-conf=xxx]
tosutil config -interactive [-conf=xxx]
参数名 | 参数类型 | 描述 |
---|---|---|
-interactive | Bool | 使用交互式模式更新配置。 |
-conf | String | 指定待更新的配置文件路径。 说明
|
./tosutil config -interactive
Please input your endpoint: Please input your region: cn-beijing Please input your ak: Please input your sk: Please input your sts token: Config file url: /Users/.tosutilconfig Update config file successfully!
./tosutil config [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]
tosutil config [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]
参数名 | 参数类型 | 描述 |
---|---|---|
-e | String | 指定更新配置文件中的 Endpoint。 |
-re | String | 指定更新配置文件中的 Region。 |
-i | String | 指定更新配置文件中的 Access Key ID。 |
-k | String | 指定更新配置文件中的 Secret Access Key。 |
-t | String | 指定更新配置文件中的 Token。 |
-conf | String | 指定待更新的配置文件路径。 说明
|
./tosutil config -re=cn-beijing
Config file url: /Users/.tosutilconfig Update config file successfully!