Skip to content

CLI overview

The svm command ships with the Python package. Install it with pip install './sdk/python[cli]'. It finds credentials the same way the SDKs do (Install and authenticate). If none are set, it falls back to the session that svm auth login saved in the OS keyring.

Terminal window
svm --domain api.example.com auth configure # save a key (read without echo)
svm sandbox create --template base --connect # create, then open a shell
svm sandbox exec <id> -- python3 -c 'print(2 + 2)'
svm sandbox files write <id> /home/user/a.txt --content hi
svm sandbox pause <id> --wait
svm sandbox kill <id>
Option Meaning
--domain API domain. Defaults to SVM_DOMAIN.
--json Machine-readable output. Errors go to stderr as {"error": {...}}. It can come before the group or after the command’s own arguments.
--config Project file. Defaults to SVM_PROJECT_CONFIG, else the nearest svm.toml.

Exit codes:

Code Meaning
0 Success
1 A client-side error
2 A usage error or an API error
4 A failed template build

sandbox exec and ssh return the guest’s exit code.

svm config init writes a starter file. Flags win over the file.

domain = "https://api.example.com"
[sandbox]
template = "web"
timeout_seconds = 900
cpu_count = 2
memory_mb = 2048
metadata = { project = "demo" }
auto_pause = true

The CLI never prints guest or traffic tokens, secret values, signed upload URLs or proxy tokens. Each command group has its own page in this section.