twc-rs server
Manage cloud servers
| Subcommand | Description |
|---|---|
list | List all cloud servers |
info | Show detailed info for a server |
delete | Delete a server by ID |
reboot | Reboot a server by ID |
start | Power a server on |
shutdown | Gracefully shut a server down |
clone | Clone a server by ID |
reset-password | Reset a server’s root password |
list-presets | List available server presets |
list-os | List installable OS images |
list-software | List available pre-installable software |
list-configurators | List server configurators (custom builds) |
disk | List the disks attached to a server |
ip | List the IP addresses of a server |
history | Show the recent action history (logs) of a server |
set-nat-mode | Set the NAT mode of a server’s local network |
set-boot-mode | Set the OS boot mode of a server (restarts the server) |
resize | Resize a server to a different preset |
reinstall | Reinstall the OS of a server (wipes data) |
create | Create a new cloud server from a preset and OS image |
set | Update a server’s name and/or comment |
backup-list | List disk backups of a server |
backup-create | Create a disk backup of a server’s system disk |
twc-rs server list
List all cloud servers
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--limit | Maximum number of servers to return | |||
--offset | Number of servers 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 server info
Show detailed info for a server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server delete
Delete a server by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server reboot
Reboot a server by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server start
Power a server on
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server shutdown
Gracefully shut a server down
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server clone
Clone a server by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server reset-password
Reset a server’s root password
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server list-presets
List available server 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 server list-os
List installable OS 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 server list-software
List available pre-installable software
| 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 server list-configurators
List server configurators (custom builds)
| 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 server disk
List the disks attached to a server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server ip
List the IP addresses of a server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server history
Show the recent action history (logs) of a server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server set-nat-mode
Set the NAT mode of a server’s local network
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server ID | yes | ||
--nat-mode | One of: dnat_and_snat, snat, no_nat | 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 server set-boot-mode
Set the OS boot mode of a server (restarts the server)
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server ID | yes | ||
--boot-mode | One of: default, single, recovery_disk | 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 server resize
Resize a server to a different preset
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server ID | yes | ||
--preset-id | Target preset 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 server reinstall
Reinstall the OS of a server (wipes data)
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server ID | yes | ||
--os-id | OS image ID to install | 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 server create
Create a new cloud server from a preset and OS image
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | Server name (max 255 chars) | yes | ||
--preset-id | Preset (tariff) ID. Use server list-presets to list | yes | ||
--os-id | OS image ID. Use server list-os to list | yes | ||
--comment | Optional comment (max 255 chars) | |||
--ssh-key | SSH key IDs to attach (repeatable) | |||
--project-id | Project ID to place the server in | |||
--availability-zone | Availability zone (e.g. spb-1, msk-1, ams-1) | |||
-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 server set
Update a server’s name and/or comment
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server ID | yes | ||
--name | New name | |||
--comment | New comment | |||
-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 server backup-list
List disk backups of a server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server 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 server backup-create
Create a disk backup of a server’s system disk
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Server ID | yes | ||
--comment | Optional backup comment | |||
-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 |