A CLI client for TensorDock
Install using go install github.com/caguiclajmg/tensordock-cli
or grab a build from Releases
go build
Add --help
to any command to get contextual help
tensordock-cli config --apiKey api_key --apiToken api_token [--serviceUrl service_url]
Go to https://console.tensordock.com/api to get your API key and token
Credentials may also be specified inline with every command using the --apiKey
and --apiToken
flags
tensordock-cli servers list
tensordock-cli servers info server_id
tensordock-cli servers status server_id
tensordock-cli servers start|stop|restart server_id
tensordock-cli servers delete server_id
tensordock-cli servers manage server_id
tensordock-cli servers ssh server_id
tensordock-cli servers deploy \
[--location location \]
[--instanceType instance_type \]
[--gpuModel gpu_model \]
[--gpuCount gpu_count \]
[--cpuModel cpu_model \]
[--vcpus vcpus \]
[--storage storage \]
[--storageClass storage_class \]
[--ram ram \]
[--os os \]
name \
admin_user \
admin_pass
Tip: try tensordock-cli stock list [--type cpu]
to find out available values for gpu_model
, location
and cpu_model
tensordock-cli servers deploy server_name admin_user admin_pass --gpuCount 2 --gpuModel A4000
tensordock-cli servers deploy server_name admin_user admin_pass --instanceType cpu --cpuModel Intel_Xeon_V4
tensordock-cli servers modify server_id \
--instanceType instance_type \
--gpuModel gpu_mdoel \
--gpuCount gpu_count \
--cpuModel cpu_model \
--storage storage \
--vcpus vcpus \
--ram ram
tensordock-cli servers modify server_id --instanceType cpu --cpuModel Intel_Xeon_V4 --storage 20 --vcpus 2 --ram 4
tensordock-cli servers modify server_id --instanceType gpu --gpuModel Quadro_4000 --gpuCount 2 --storage 20 --vcpus 2 --ram 4
tensordock-cli billing
tensordock-cli stock list
tensordock-cli stock list --type cpu