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.
svm --domain api.example.com auth configure # save a key (read without echo)svm sandbox create --template base --connect # create, then open a shellsvm sandbox exec <id> -- python3 -c 'print(2 + 2)'svm sandbox files write <id> /home/user/a.txt --content hisvm sandbox pause <id> --waitsvm sandbox kill <id>Global options
Section titled “Global options”| 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.
Project file: svm.toml
Section titled “Project file: svm.toml”svm config init writes a starter file. Flags win over the file.
domain = "https://api.example.com"
[sandbox]template = "web"timeout_seconds = 900cpu_count = 2memory_mb = 2048metadata = { project = "demo" }auto_pause = trueThe 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.