Skip to content

CLI Reference

The workers here are built, published and deployed with virtufin-worker from common's virtufin-dev package. virtufin-worker <command> --help lists every flag; the full reference is common's Worker CLI.

pip install 'virtufin-dev[workers]' --extra-index-url https://pypi.haenerconsulting.com/api/packages/virtufin/pypi/simple/
Command What it does
virtufin-worker build <Worker> [--native] Build the nupkg or wheel into build/<Worker>/ (Build Script)
virtufin-worker publish <Worker> Push it to the org feed; refuses an already-published version. CI does this.
virtufin-worker create <Worker> --context prod CreateWorker from the feed (the virtufin credential, the worker's mime type, config.json's topics), StartWorker, wait for the load
virtufin-worker list --context prod ListWorkers
virtufin-worker start\|stop\|delete --context prod <id>... StartWorker / StopWorker / DeleteWorker
virtufin-worker history --context prod <id> GetWorkerHistory
virtufin-worker load --context prod <id> --url URL\|--file PATH LoadCode (hot reload)

--context names an entry in ~/.config/virtufin/api/contexts.toml, the file virtufin-tui and the examples read; TLS and the API key come from it. prod is the production cluster on medusa (api.virtufin.com), local a backend you run yourself with deploy-local, dev-linode-tyo the Linode dev cluster (on hold, powered off).

create options: --version V (default: versions.env), --native (application/x-native-dll), --topic T (repeatable, replaces config.json's topics), --worker-config KEY=VALUE and --secret ATTRIBUTE=REFERENCE (repeatable, over config.json's config and secrets), --file PATH (send a local artefact's bytes), --no-start, --wait SECONDS, --dry-run (print the request).

See also