You need to enable JavaScript to run this app.
导航

查看或更新配置文件(config)

最近更新时间2024.03.20 21:38:21

首次发布时间2022.11.03 10:30:29

您可以使用 config 命令查看配置文件路径,并更新配置文件中的关键配置信息。

查看配置文件路径

命令格式

./tosutil config

参数说明


使用示例

  • 命令
./tosutil config
  • 返回
Config file url:
  /Users/user/.tosutilconfig

交互式模式更新配置文件

命令格式

./tosutil config -interactive [-conf=xxx]

参数说明

参数名

参数类型

描述

-interactive

Bool

使用交互式模式更新配置。

-conf

String

指定待更新的配置文件路径。

说明

  • 该参数只能用于指定待更新的配置文件路径,不会在指定路径下自动创建配置文件。
  • 只支持更新 Endpoint、Region、AKSK 及 STS Token 信息。

使用示例

  • 命令
./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]

参数说明

参数名

参数类型

描述

-e

String

指定更新配置文件中的 Endpoint。

-re

String

指定更新配置文件中的 Region。

-i

String

指定更新配置文件中的 Access Key ID。

-k

String

指定更新配置文件中的 Secret Access Key。

-t

String

指定更新配置文件中的 Token。

-conf

String

指定待更新的配置文件路径。

说明

  • 该参数只能用于指定待更新的配置文件路径,不会在指定路径下自动创建配置文件。
  • 只支持更新 Endpoint、Region、AKSK 及 STS Token 信息。

使用示例

  • 命令
./tosutil config -re=cn-beijing
  • 返回
Config file url:
  /Users/.tosutilconfig
 
Update config file successfully!