Reference
The velrix command
The velrix command: sign in to a realm and call its API from any machine, and run a Velrix server from its console.
velrix is one binary with two sides. The realm side signs you in to a realm over HTTPS from any machine and calls its API: login, api, profiles, access, import. The operator’s side acts on a server’s own files and needs no sign-in: on a Velrix OS server it runs as the velrix user, for the console, scripts and recovery. Most of what it does also has a place in the Manager.
The binary ships with every release. Realm commands take --profile <name> (else VELRIX_PROFILE, else the default profile) and --help. On a server, --instance <name> picks one instance of the realm; the default is the server’s own.
Commands
| Command | What it does |
|---|---|
velrix login <realm url> [--device] [--scope <scopes>] [--profile <name>] | Sign in to a realm over HTTPS: the browser, or --device for a code to type on another machine. --scope asks for API scopes. |
velrix api <capability:event> [<json> | -] [--profile <name>] | Call one event of the realm’s API (<realm>/api/<capability>/<event>) with the profile’s token and print the JSON answer. |
velrix logout [--local] [--profile <name>] | End the session at the realm. --local only forgets this machine’s copy. |
velrix whoami [--profile <name>] | Who the profile is signed in as, and at which realm. |
velrix profiles [list] | use <name> | remove <name> | The realms you are signed in to, one profile each: list, choose or remove. |
velrix access login|token|logout|git <hostname> [--profile <name>]velrix access tcp <hostname>:<port> (--listen 127.0.0.1:<port> [--allow-remote] | --stdio) [--profile <name>] | Velrix Access: a credential for one name behind it (login, token, logout, git), or a TCP tunnel to it (tcp). |
velrix import directadmin plan <backups…> --reseller org:<id> [--rules <file>] [--offline] [--profile <name>]velrix import directadmin apply <plan> <backups…> [--only <da-user>] [--step <name>] [--adopt <key>=<id>]… [--profile <name>]velrix import directadmin delta <plan> <newer backups…> [--only <da-user>] [--step <name>] [--force] [--profile <name>]velrix import directadmin cutover <plan> --zone realm|external [--only <da-user>] [--profile <name>]velrix import directadmin status <plan> | Move DirectAdmin customers to the realm: plan from their backups, apply, send what changed since, cut over, status. |
velrix version | The release this command was built for. |
velrix issue init | all | <id>... [--days N] | The issuer key, and each module’s identity and attestation. |
velrix render | Write each module’s configuration and pod from the deploy files: every module, or the ones named. |
velrix build | Check and build the release from source; --images also builds one image per module. |
velrix up | Render and start the instance’s modules. A render that fails starts the last good one. |
velrix down | Stop the instance’s modules, and remove pods of modules no longer in the realm. |
velrix status | The last lines of each module’s log. |
velrix console | The server’s console screen; --once prints it once. |
velrix client | The edge’s address and certificate hash, as environment for the web client. |
velrix docs | A page per module from its manifest and capability specs. |
velrix setup-token | The code that claims a fresh instance in its setup wizard. |
velrix stop <id> | Stop one module. |
velrix start <id> | Start one module. |
velrix release build --version <v> [...] | promote <dir> --via <url> | verify <dir> [--json] | apply <dir> [--online] | os <dir> | rollback | write-stick <dir> <mountpoint> | --iso <out.iso>velrix release dropped <version> <failed|rollback-failed> <why> | Signed releases: build, promote, verify, apply, update the OS, roll back, write an install stick or ISO. |
velrix replicas add|remove <module> --instance <name> [--id <request>] | request | Where a module’s copies run. |
velrix vendor key <out> [--plain] [--piv [--generate]] | set create|propose <dir> --need <n> --member <name>:<role>:<pub.pem>… | set adopt <dir> | sign <file> --member <name> --key <file> [--keyset <dir>] | combine <out> <file>… | promote <version> --channel stable --member <name> --key <file> [--release <dir>] | verify <file> [--keyset <dir>|--set <file>] | The vendor’s signing keys and keyset: make, sign, combine, promote to a channel, verify. |
velrix specs diff <dir>velrix specs diff <old tree | capabilities dir> | What changed in the capability specs since an older tree, and versions that do not say so. |
velrix instance export <name> | import <tar> | Export an instance as a file another host can run, or import one. |
velrix images push [--via <addr>] | pull [--for <secs>] | Push this instance’s module images to the realm’s registry, or pull them from there. |
velrix name check|set <name>... [--url <https://name[:port]/>] [--id <request>] [--instance <name>] | Check or set the realm’s public names and address. |
velrix net migrate [--from <keyfile dir>] [--to <networkd dir>] | Move a server’s network settings from keyfiles to systemd-networkd. |
velrix provider pack <id>… [--signer <identity.json>] [--issuer <pem file>] [--out <dir>] | Pack a provider, signed. |
velrix extension pack <kind> <built dir> [--signer <identity.json>] [--issuer <pem file>] [--out <dir>] | Pack an extension, signed. |
velrix realmkey console issue|renew|release <instance> [--key <backup file>]velrix realmkey request | status | console issue|renew|release <instance> | The realm key: carry out waiting requests, show its status, or issue, renew and release an instance’s key at the console. |
velrix installer serve | tui [<url>] | check | The installer: serve it, run its text screen, or check the install medium. |