You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Auxiliary commands
View or update the configuration file (config)
Copy page
Download PDF
View or update the configuration file (config)
You can use the config command to view a configuration file's path and update key configurations of the file.​
Viewing the path of a configuration file​
Command syntax​
​
Linux/macOS
Windows
​
​
​
./tosutil config​
​
​
​
​
Parameters​
None​
Example​
  • Command​
​
./tosutil config​
​
  • Output​
​
Config file url:​
/Users/user/.tosutilconfig​
​
Updating a configuration file in interactive mode​
Command syntax​
​
Linux/macOS
Windows
​
​
​
./tosutil config -interactive [-conf=xxx]​
​
​
​
Parameters​
​
Parameter​
Type​
Description​
-interactive​
Bool​
Update the configuration file in interactive mode.​
-conf​
String​
The path of the configuration file that will be updated.​
tip​
  • This parameter only specifies the path of the configuration file that will be updated. It will not automatically create a configuration file at the specified path.​
  • In interactive mode, only the endpoint, region, access key ID and secret access key (AK/SK), and Security Token Service (STS) token can be updated.​
​
Example​
  • Command​
​
./tosutil config -interactive​
​
  • Output​
​
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!​
​
Updating a configuration file directly​
Command syntax​
​
​
Linux/macOS
Windows
​
​
​
./tosutil config [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]​
​
​
​
​
Parameters​
​
Parameter​
Type​
Description​
-e​
String​
Updates the endpoint in the configuration file.​
-re​
String​
Updates the region in the configuration file.​
-i​
String​
Updates the access key ID in the configuration file.​
-k​
String​
Updates the secret access key in the configuration file.​
-t​
String​
Updates the token in the configuration file.​
-conf​
String​
The path of the configuration file that will be updated.​
tip​
  • This parameter only specifies the path of the configuration file that will be updated. It will not automatically create a configuration file at the specified path.​
  • In interactive mode, only the endpoint, region, access key ID and secret access key (AK/SK), and Security Token Service (STS) token can be updated.​
​
Example​
  • Command​
​
./tosutil config -re=cn-beijing​
​
  • Output​
​
Config file url:​
/Users/.tosutilconfig​
​
Update config file successfully!​
​
​
Last updated: 2025.12.17 18:33:42