twc-rs image
Manage disk images
| Subcommand | Description |
|---|---|
list | List all disk images |
info | Show detailed info for an image |
create | Create a new image |
set | Update an image’s name |
delete | Delete an image by ID |
upload | Upload a local image file to an image |
twc-rs image list
List all disk images
| 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 image info
Show detailed info for an image
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Image 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 image create
Create a new image
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | Image name | yes | ||
--location | Location where the image is created | 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 image set
Update an image’s name
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Image ID | yes | ||
--name | New image name | |||
-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 image delete
Delete an image by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Image 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 image upload
Upload a local image file to an image
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Image ID | yes | ||
--file | Path to the local image file | 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 |