twc-rs s3
Manage S3 storages
| Subcommand | Description |
|---|---|
list | List all S3 storages |
info | Show detailed info for a storage |
create | Create a new S3 storage |
delete | Delete a storage by ID |
update | Update storage settings |
user-list | List users for a storage |
user-update | Update a storage user |
transfer | Transfer a storage |
subdomain-list | List subdomains for a storage |
subdomain-add | Add a subdomain to a storage |
subdomain-delete | Delete a subdomain from a storage |
preset-list | List available storage presets |
genconfig | Print an s3cmd config file for a storage |
twc-rs s3 list
List all S3 storages
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--limit | Maximum number of storages to return | |||
--offset | Number of storages to skip | |||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 info
Show detailed info for a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 create
Create a new S3 storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | Storage name | yes | ||
-p, --preset-id | Preset ID for the storage | |||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 delete
Delete a storage by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 update
Update storage settings
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
--description | New storage description | |||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 user-list
List users for a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 user-update
Update a storage user
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--user-id | Storage user ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 transfer
Transfer a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--target-id | Target storage ID (reserved for future use) | |||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 subdomain-list
List subdomains for a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 subdomain-add
Add a subdomain to a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
--subdomain | Subdomain name | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 subdomain-delete
Delete a subdomain from a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
--subdomain | Subdomain name | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 preset-list
List available storage presets
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs s3 genconfig
Print an s3cmd config file for a storage
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Storage ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |