sonic is the official SonicInfra CLI. Authenticate with a magic link, then SSH into any Compute Instance, forward its ports, or inject a key — all over an authenticated tunnel straight into your Compute Instance.
sonic ssh <vm> opens an SSH session directly to your compute instance.sonic instances create web-01 --instanceType ne.2 --image ubuntu-24-04 — list, get, create, update, and delete work for every resource type the API exposes, with fields generated straight from its OpenAPI spec.sonic ssh-setup adds a ProxyCommand entry to ~/.ssh/config once, so plain ssh myvm.sonicinfra, scp, and rsync tunnel through sonic automatically — no wrapper needed.sonic port-forward <vm> <port> forwards any Compute Instance port to localhost. Use local:remote to pick your own local port.sonic login authenticates you via an emailed link. Sessions are stored locally — no long-lived API keys to leak.sonic machine-token request mints a short-lived, scoped token (up to 90 days) for pipelines; machine-token use consumes it non-interactively.sonic ssh-copy-id <vm> pushes your public key into a Compute Instance, even before it's reachable over the network.sonic ssh polls Compute Instance readiness before connecting, so scripts don't race a still-starting machine.sonic instances create web-01 --instanceType ne.2 --image ubuntu-24-04. Run sonic <resource> with no action, or sonic <anything>, to see what's available. list takes --fields name,field2,... and --no-header for scripting.operation_id a create/update prints) until it finishes, same as the dashboard's own polling.user@vm; always waits until it's ready before connecting.Host *.sonicinfra / ProxyCommand entry to ~/.ssh/config so plain ssh, scp, and rsync reach Compute Instances directly, e.g. ssh myvm.sonicinfra.local:remote to choose the local port.