CLI, SDKs and developer tools
Everything in the console is scriptable. Install the CLI, grab an SDK in your language and automate away.
HIOK CLI · v2.0.0
One CLI for every region
# One-line install curl -fsSL https://hiokcloud.com/api/downloads/install.sh | sudo bash # Or download and place it yourself curl -fsSL https://hiokcloud.com/api/downloads/hiok -o hiok chmod +x hiok && sudo mv hiok /usr/local/bin/
Built for Ubuntu 24.04 — the same OS the platform runs on in production.
Then get to work
# Verify and sign in hiok --version # hiok/2.0.0 hiok login # Find your way around hiok groups # every group the API exposes hiok registry # every command in one group # Do something hiok registry list -o table hiok vm list-vms-info -o table hiok registry create -f registryName=team-images -f region=canada
SDKs
Your language, first-class
Python SDK
Python 3.9+ · no dependenciespip install "hiok @ https://hiokcloud.com/api/downloads/sdk.tar.gz"from hiok import Hiok
hiok = Hiok(endpoint="https://hiokcloud.com")
hiok.login("[email protected]", "…")
hiok.container_registry.create(body={"registryName": "team-images",
"region": "canada"})
hiok.virtual_machine.list_vms_info()Command line
One file · Python 3.9+curl -fsSL https://hiokcloud.com/api/downloads/install.sh | sudo bashhiok login hiok groups # every group the API has hiok registry list -o table hiok registry create -f registryName=team-images -f region=canada hiok vm start -f vmName=web-01
Terraform provider
Go 1.23+ · built from sourcecurl -fsSL https://hiokcloud.com/api/downloads/sdk.tar.gz | tar xz && cd sdk/terraform && go build .provider "hiok" {
endpoint = "https://hiokcloud.com" # or HIOK_ENDPOINT
} # token from HIOK_TOKEN, or `hiok login`
resource "hiok_container_registry" "images" {
name = "team-images"
region = "canada"
sku = "Basic"
storage_gb = 10
}Any other language
Generated from the API itselfcurl -fsSL https://hiokcloud.com/swagger/v1/swagger.json -o hiok-openapi.json# The SDK, the CLI and the provider are all generated from this # document — 541 operations across 62 groups, with stable # operation ids — so a client for another language is a # generator run rather than a rewrite. python3 sdk/generate.py --spec hiok-openapi.json
Infrastructure as code
The HIOK Terraform provider
Declare virtual machines, networks, containers and storage the same way you already manage the rest of your estate.
1 · Install
# The provider is built from the same archive as the SDK. # No registry entry and no separate repository to clone. curl -fsSL https://hiokcloud.com/api/downloads/sdk.tar.gz | tar xz cd sdk/terraform && go build -o terraform-provider-hiok . # Point Terraform at it with a filesystem mirror mkdir -p ~/.terraform.d/plugins/registry.terraform.io/hiok/hiok/1.0.0/linux_amd64 cp terraform-provider-hiok ~/.terraform.d/plugins/registry.terraform.io/hiok/hiok/1.0.0/linux_amd64/terraform-provider-hiok_v1.0.0
2 · Configure the provider
terraform {
required_providers {
hiok = {
source = "hiok/hiok"
version = "~> 1.0"
}
}
}
# Credentials come from HIOK_ENDPOINT and HIOK_TOKEN, or from
# HIOK_EMAIL + HIOK_PASSWORD — so nothing sensitive lands in a .tf
# file. A token written by `hiok login` is picked up too.
provider "hiok" {
endpoint = "https://hiokcloud.com"
}3 · Describe your infrastructure
resource "hiok_virtual_network" "app" {
name = "app-net"
address_space = "10.20.0.0/16"
region = "canada"
forward_mode = "nat"
}
resource "hiok_virtual_machine" "web" {
name = "web-01"
image = "ubuntu-24.04-amd64"
network_name = hiok_virtual_network.app.name
vcpu_count = 2
ram_size = 4
username = "hiok"
auth_type = "ssh"
ssh_public_key = file("~/.ssh/id_ed25519.pub")
}
resource "hiok_container_registry" "images" {
name = "team-images"
region = "canada"
storage_gb = 10
}
output "registry_login_server" {
description = "Pass this to docker login."
value = hiok_container_registry.images.login_server
}terraform init && terraform apply — the same API the console uses.
Resources & data sources
Resources
hiok_virtual_machinehiok_virtual_networkhiok_containerhiok_storage_accountData sources
hiok_regionshiok_vm_imageshiok_virtual_machineMore tools
Samples & references
Install it, script it, ship it
Sign in once with hiok login and every region is at your fingertips.