Torch Object Storage
Parameter | Environment variable | Description |
Parameter | Environment variable | Description |
-P, --profile <PROFILE> | TOS_PROFILE | Sets the profile name in the configuration file. The default name is default. |
--config-path <PATH> | TOS_CONFIG_PATH | Specifies the TOML path. The default location is $HOME/.tos/config.toml. This directory also stores the local encryption key used to protect persisted secrets. If the specified path does not exist, the command exits with an error (exit 3) and does not fall back (env /) to the default configuration. |
-r, --region <REGION> | - | Overrides the current region setting. |
-e, --endpoint <URL> | - | Overrides the current data plane endpoint setting. |
--control-endpoint <URL> | - | Specifies the endpoint for control plane operations. This option only applies to TOS. Use it with --account-id or configure it in advance via config set. |
--account-id <ID> | - | Specifies the account ID for control plane operations. This option only applies to TOS. Use it with --control-endpoint or configure it in advance via config set. |
-o, --output <FORMAT> | TOS_OUTPUT | Sets the output format. The possible values are json, yaml, table, csv, and markdown. |
--query <JMESPATH> | - | Filters the output using a JMESPath expression. |
--dry-run | - | Previews operations without executing them. |
--describe | - | Prints the structured metadata for the command, including the definitions of parameters, descriptions of risks, and API mappings. |
-y, --yes | - | Skips interactive prompts and automatically confirms all operations. |
--confirm <RESOURCE> | - | Specifies tos://... to confirm critical delete operations with the exact target. |
--no-color [<BOOL>] | NO_COLOR | Disables colored output. The default value is true. This is suitable for log collection or terminal environments that do not support ANSI. |
-v / -q | - | Sets the output verbosity:
|
--language <en|zh> | - | Sets the language for help information:
|
Issue | Resolution |
Issue | Resolution |
Authentication failed (exit 2) |
|
Configuration missing (exit 3) | If a configuration file that does not exist is specified via --config-path or TOS_CONFIG_PATH, the command exits with error exit 3. Run ve-tos-cli config init and set the region and endpoint. |
Control plane command errors | Specify control plane information:
|
Deletion blocked | In non‑interactive mode, include --force and an exact target for --confirm <RESOURCE>. |
Recursive listing not working | Explicitly specify --recursive-list-mode hierarchical. |
Viewing lower-level sub-commands | Run ve-tos-cli <group> --describe --output json to view available sub-commands. |