twc-rs ssh
Manage SSH keys
| Subcommand | Description |
|---|---|
list | List all SSH keys |
add | Add an SSH key from a file or stdin |
delete | Delete an SSH key by ID |
info | Show detailed information about an SSH key |
edit | Edit an SSH key’s name and/or default flag |
attach | Attach existing SSH key(s) to a cloud server |
detach | Detach an SSH key from a cloud server |
twc-rs ssh list
List all SSH keys
| 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 ssh add
Add an SSH key from a file or stdin
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | Human-readable name for the key | yes | ||
--file | Path to the public key file. Reads from stdin if omitted | |||
--default | Mark this key as default for new servers | false | ||
-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 ssh delete
Delete an SSH key by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | SSH key 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 ssh info
Show detailed information about an SSH key
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | SSH key 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 ssh edit
Edit an SSH key’s name and/or default flag
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | SSH key ID | yes | ||
--name | New name for the key | |||
--default | Mark this key as default for new servers | |||
-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 ssh attach
Attach existing SSH key(s) to a cloud server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--server | Target server ID | yes | ||
--key | SSH key ID to attach. Repeat to attach several at once | |||
-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 ssh detach
Detach an SSH key from a cloud server
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--server | Target server ID | yes | ||
--key | SSH key ID to detach | 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 |