CLI Reference
Table of contents
- Global Flags
- Core VM Commands
- Image Commands
- Package Commands
- Network And DNS Commands
- Volume Commands
- Compose Commands
- Cluster Commands
- Kernel Commands
- Version Command
- Config Commands
- Windows Daemon Commands
- Native
jerboadFlags - Current Command Surface
Global Flags
Every jerboa command accepts:
| Flag | Description |
|---|---|
-H, --host | Daemon endpoint override |
--store | Local client-side store root used by commands that touch client-owned state |
--output table|json | Output format |
-V, --verbose | Show raw build/download output |
-v, --version | Show CLI version |
Endpoint resolution order:
--host- deprecated
--socket JERBOA_HOST[daemon] endpointin~/.jerboa/config.toml- platform default
Defaults:
- Linux:
unix:///var/run/jerboad.sock - Windows:
tcp://127.0.0.1:7890as the configured default, but the client resolves and dials the dedicated WSL2 distro IP when auto-booting the daemon
Authentication token resolution:
JERBOA_AUTH_TOKEN[daemon] tokenin~/.jerboa/config.toml
Core VM Commands
jerboa run <image>
Create and start a VM from:
- an image reference like
hello:latest - a direct disk image path on the daemon filesystem
Key flags:
| Flag | Description |
|---|---|
--memory | VM memory, default 256M |
--cpus | vCPU count, default 1 |
-p, --port | Port mapping [bindaddr:]host:guest[/tcp\|udp]; without a bind address the port publishes on all interfaces, 127.0.0.1:host:guest restricts it to localhost |
-e, --env | Repeatable environment variable |
--env-file | Read env vars from file |
--name | Human-readable VM name |
--rm | Auto-remove after stop |
-v, --volume | Named volume mount name:path[:ro] |
--attach | Stream serial console and block |
-d, --detach | Detached mode, default true |
--network | Managed network name |
--ip | Static guest IP, requires --network; omitted, the daemon allocates one from the network’s subnet |
--health-check | tcp:PORT or http:PORT:/path |
--restart | never, on-failure, always[:max-retries] |
--verify | Signature verification mode: off, warn, enforce |
--cpu-shares | cgroup v2 CPU weight |
--memory-max | cgroup v2 memory hard limit |
--disk-iops | Boot-disk IOPS throttle |
--disk-bps | Boot-disk throughput throttle |
Notes:
- Port publishing requires
--network. - Every VM on a managed network gets a guest IP:
--ippins it, otherwise the daemon’s IPAM allocates the next free address from the network’s subnet. - TCP forwarding works today.
- UDP mappings are currently skipped by the userspace forwarder with a warning.
jerboa ps
List VMs known to the daemon. The command help still says “running”, but the implementation prints the daemon registry, including stopped entries when present.
jerboa status
Summary view of daemon-side VM counts and restart/health state.
jerboa logs <id>
Print buffered serial console output.
Flag:
-f, --follow: poll and stream appended output until the VM stops
When the output contains a known Nanos failure signature (popen failure, error loading shared library, no space left on device, …), an explanation of the cause and the fix is printed after the logs. The same detection runs on jerboa run --attach output. See Troubleshooting for the full catalogue.
jerboa inspect <id>
Return full VM detail as JSON.
jerboa stats <id>
Show runtime stats.
Flags:
-w, --watch-i, --interval
jerboa stop <id>
Graceful stop by default.
Flag:
--force: immediate kill
jerboa rm <id>
Remove a stopped VM from the daemon registry.
jerboa exec <id>
Send a signal through the daemon.
Flag:
--signal, defaultSIGTERM
Image Commands
jerboa build <path>
Build an image from a static ELF or a source directory.
Key flags:
| Flag | Description |
|---|---|
--name | Image name |
--tag | Image tag, default latest |
--memory | Default memory baked into the image |
--cpus | Default CPU count baked into the image |
--pkg | Include runtime package(s); appends to [build] pkgs from unikernel.toml |
--pkg-source | ops (default) or jerboa; an explicit flag overrides [build] pkg_source |
--lang | go, node, python, rust, raw |
--platform | Cross-build target |
--port | Declared service port; emits the guest network section in the build manifest |
-f, --file | Path to the unikernel.toml to use (default: <path>/unikernel.toml) |
--no-preflight | Skip the pre-build binary checks (ELF class/arch, shared-library closure, entrypoint presence) |
--smoke | Boot the image once after building, scan serial output for known failure signatures, then stop and remove the test VM |
unikernel.toml is read automatically when present, or selected explicitly with -f/--file. Relevant [build] keys:
| Key | Description |
|---|---|
lang | Build driver: go, node, python, rust, raw |
entrypoint | Override the default entrypoint |
run | Shell commands to run before packaging (like a Dockerfile RUN) |
pkgs | Packages to include (e.g. ["eyberg/postgresql:11.3.0"]); --pkg flags append to this list |
pkg_source | Package source: ops (default) or jerboa; an explicit --pkg-source flag wins |
disk_size | Minimum image size (e.g. 512M, 1G) for runtime scratch space |
dirs | Absolute directories to create empty in the image — volume mount points (a volume can only mount onto a directory that already exists in the image) and runtime scratch paths |
For lang = "raw", [program] path names the runtime binary resolved from package files; the program is executed from its real in-image path, so binaries that locate their installation prefix relative to their own executable (e.g. postgres, mysqld) and binaries with $ORIGIN-relative library paths resolve correctly. When [program] is omitted entirely, the program and its arguments are inherited from the ops package’s own package.manifest (Program/Args), so well-formed ops packages build with just pkgs = [...].
Before assembling the image the build runs preflight checks: the program must be a 64-bit Linux ELF for a supported architecture; if dynamically linked, its interpreter and the full recursive DT_NEEDED shared-library closure must resolve against the image contents; node/python entrypoints must be among the packed files. Errors abort the build with a fix hint; --no-preflight skips the checks. See Build Concepts for the background.
[env] keys are baked into the image environment (highest priority — they override env supplied by packages or the language driver).
[run] keys are baked into the image manifest and inherited by jerboa run unless overridden by a flag (precedence: run flag > [run] value > built-in default):
| Key | Description |
|---|---|
memory | Default VM memory (e.g. 512M); applied unless --memory is given |
cpus | Default vCPU count; applied unless --cpus is given |
ports | host:guest publish maps; applied when the VM joins a network (--network) and no -p is given |
[[stages]] defines multi-stage builds: each stage has its own lang, entrypoint, args, and copy_from (stage, src, dst) directives; the final stage’s output becomes the image binary.
Build driver behavior to know:
- Go builds add
-trimpathand-ldflags "-s -w"by default to reduce guest binary and image size. If custom build args include-ldflags, those args are appended after the defaults and take precedence. - Node builds install production dependencies only when
node_modulesis missing. Ifpackage-lock.jsonexists, the driver usesnpm ci --omit=dev --no-audit --no-fund; otherwise it usesnpm install --omit=dev --no-audit --no-fund. - Python builds cache dependency installs.
pip installruns only whenrequirements.txtor the Python version changes, tracked bypackages/.jerboa-deps-stamp. Deletepackages/or that stamp file to force a dependency reinstall. In the Flask example project, this reduces unchanged rebuilds from about 22s to about 9s.
Newly built images reserve a 4 MiB embedded boot filesystem partition instead of the previous 12 MiB layout, so they are about 8 MiB smaller (for example, hello drops from about 16.6 MiB to about 8.1 MiB). Older images are unchanged; rebuild an image to get the smaller layout.
jerboa init [path]
Write a commented unikernel.toml scaffold into path (default .). The language is auto-detected from marker files (go.mod, Cargo.toml, package.json, pyproject.toml/requirements.txt); ambiguous or empty directories get the generic template. The generated file documents every field inline, including the raw-mode program-path pitfalls.
Flags:
| Flag | Description |
|---|---|
--lang | Force the template: go, node, python, rust, raw |
--force | Overwrite an existing unikernel.toml |
init is a purely local command — it never contacts the daemon.
jerboa images
List images stored by the daemon.
jerboa rmi <ref>
Remove an image from the daemon store.
jerboa sign <image>
Resolve the image through the daemon and sign its disk digest with the default Ed25519 key.
jerboa verify <image>
Resolve the image through the daemon and verify its stored signature.
Package Commands
jerboa pkg manages runtime packages used during builds.
Subcommands:
| Command | Purpose |
|---|---|
pkg list | List locally cached packages |
pkg search <query> | Search remote index |
pkg get <ref> | Download package |
pkg remove <ref> | Remove cached package |
pkg create <name>[:version] <binary> | Create a local package |
pkg from-docker <name>[:version] <image> | Extract a binary and libraries from a Docker image |
pkg push <name>:<version> <index-url> | Push a local package to a remote index |
pkg load <package> | Download, build, and prepare a runnable image in one step |
Supported package sources (--source, default ops):
ops— the nanovms/ops ecosystem atrepo.ops.city; refs are<namespace>/<name>:<version>(e.g.eyberg/postgresql:11.3.0)jerboa— the first-party index; also wherepkg createandpkg from-dockerstore their local packages
pkg from-docker flags:
--file <path>— the binary inside the image to package. Optional: when omitted, the program is derived from the image’sEntrypoint/Cmdand resolved on the container’sPATH; its shared-library closure is discovered withlddinside a temporary container and bundled automatically. Images whose entrypoint is a shell script (docker-entrypoint.shand friends) cannot be derived — there is no shell in a unikernel — so pass--filewith the real binary the script eventually launches.
jerboa pkg from-docker redis:7.2 redis:7.2
jerboa build . --lang raw --pkg redis:7.2 --pkg-source jerboa --name redis
pkg create flags:
--libs— additional files to bundle (repeatable)--description,--runtime— metadata--missing-files— report shared libraries missing from the local filesystem--sysroot <dir>— resolve shared libraries against<dir>(the rootfs the binary was built for) instead of the host, avoiding version mismatch for foreign binaries. When omitted,pkg createstill warns if the host libraries do not satisfy the binary’s symbol versions.
Network And DNS Commands
jerboa network create <name>
Flags:
--subnet--driver(currentlybridge)
jerboa network ls
jerboa network inspect <name>
jerboa network rm <name>
jerboa dns resolve <name>
jerboa dns resolve-all <name>
jerboa dns list
Each DNS command accepts --network where relevant.
Volume Commands
jerboa volume create <name>
Flags:
| Flag | Description |
|---|---|
--size | Volume size, default 1G |
--seed-pkg | Package to seed the volume from right after creation (repeatable) |
--pkg-source | Source for --seed-pkg: ops (default) or jerboa |
--src | In-package subtree whose contents become the volume root (default /) |
Create and seed in one step:
jerboa volume create pgdata --size 1G \
--seed-pkg eyberg/postgresql:11.3.0 --src /db
jerboa volume seed <name>
Populate an existing volume with an initialized filesystem taken from one or more packages, so the data is present the first time the volume is mounted. Created volumes are empty; mounting an empty volume over a data directory shadows whatever the image baked there. Seeding writes the package files into the volume’s filesystem (via mkfs on the daemon) so the data persists across VM lifecycles.
The canonical use is making a database persistent: a package such as eyberg/postgresql ships a pre-initialized data directory (initdb cannot run inside a unikernel — it fork/execs helper processes, which Nanos does not support), which is seeded onto a volume and then mounted.
jerboa volume create pgdata --size 1G
jerboa volume seed pgdata --pkg eyberg/postgresql:11.3.0 --src /db
jerboa run postgresql -v pgdata:/db --network pgnet -p 5432:5432
Flags:
| Flag | Description |
|---|---|
--pkg | Package providing the seed files (repeatable) |
--pkg-source | ops (default) or jerboa |
--src | In-package subtree whose contents become the volume root (default /); e.g. /db |
Notes:
--src /dbrebases the package’s/dbcontents to the volume root, so mounting the volume at/db(-v <name>:/db) restores them in place.- Re-running
volume seedreformats and re-populates the volume, discarding any data written since the last seed — use it to reset a volume to a clean state.
jerboa volume ls
jerboa volume inspect <name>
jerboa volume rm <name>
Compose Commands
jerboa compose up <file>
jerboa compose down <file>
jerboa compose ps <file>
jerboa compose logs <file> <service>
Current behavior to know:
- top-level volumes are auto-created on
compose up - declared networks are auto-created on
compose up compose down --volumesremoves only volumes created by that stackcompose logsis snapshot-only; there is no follow mode today
Cluster Commands
jerboa node ls
Requires the daemon to run with --cluster-addr.
Kernel Commands
jerboa kernel check
jerboa kernel update
These manage the cached toolchain (mkfs, boot.img, kernel.img) independently of the CLI version. Both resolve the latest kernel from the signed release manifest at releases.jerboa.dev and verify each artifact against its recorded SHA-256; there is no GitHub fallback and no historical version selection.
Version Command
jerboa version
Read-only readout of the installed CLI and kernel versions alongside the latest published version of every component (CLI, kernel, daemon, distro, desktop) taken from the signed release manifest. It never installs anything: on Windows the toolset is updated through the Jerboa Desktop app; on Linux you reinstall the CLI/daemon yourself. (jerboa --version still prints just the CLI version.)
Add --channel beta to query the beta channel instead of stable.
Config Commands
jerboa config get <key>
jerboa config set <key> <value>
The command group currently exposes only one writable key:
hypervisor:qemuorfirecracker
The config file supports more fields than the CLI subcommand currently edits. The underlying schema in ~/.jerboa/config.toml also includes:
[daemon] endpoint[daemon] distro[daemon] jerboad_path[daemon] token
Those are read by the codepath even though jerboa config set does not edit them yet.
With hypervisor = "qemu", the daemon automatically enables KVM when /dev/kvm is accessible by adding -enable-kvm -cpu host. If KVM is not available, QEMU falls back to TCG emulation and the daemon logs a warning. Firecracker still requires KVM.
Windows Daemon Commands
These commands exist only on Windows.
jerboa daemon install
Import the dedicated WSL2 distro.
Flags:
--rootfs <tarball>--force
jerboa daemon reinstall
Reimport the distro rootfs (fresh or newer). Unlike install --force, which destroys everything, --keep-data preserves your images, VMs, networks and volumes across the swap (exported before, restored after). The daemon is stopped and restarted around the reimport; the kernel toolchain cache is not preserved (it re-downloads on demand).
Flags:
--rootfs <tarball>— use a local rootfs instead of downloading the release--keep-data— preserve images, VMs, networks and volumes across the reimport--hypervisor <qemu|firecracker>— hypervisor to run after restart
jerboa daemon uninstall
jerboa daemon start
jerboa daemon restart
jerboa daemon stop
jerboa daemon status
jerboa daemon logs
Daemon start/restart flag:
--hypervisor qemu|firecracker
jerboa daemon logs flag:
-f, --follow
The daemon runs as root inside the dedicated distro. The client persists rendezvous state in ~/.jerboa/daemon.json.
Native jerboad Flags
jerboad is the Linux daemon binary.
| Flag | Description |
|---|---|
-H, --host | Listen endpoint |
--auth-token | Shared secret for Auth.Hello (env: JERBOA_AUTH_TOKEN); empty disables auth |
--insecure | Allow serving a TCP endpoint without an auth token (unsafe). A TCP endpoint with no token is rejected at startup otherwise; a Unix socket needs no token (it is restricted to the owning user with 0600 permissions) |
--qemu | QEMU binary path (default qemu-system-x86_64) |
--hypervisor | qemu or firecracker (overrides ~/.jerboa/config.toml) |
--fc-bin | Firecracker binary path (only with --hypervisor=firecracker) |
--fc-kernel | Firecracker-compatible kernel path (auto-downloaded if omitted) |
--tools-dir | Toolchain cache/lookup directory (mkfs, boot.img, kernel.img); empty caches under ~/.jerboa/tools |
--store | Image store root directory (default ~/.jerboa/images) |
--vm-store | VM state store backend: file (default) or sqlite |
--vm-log-max-bytes | Max in-memory serial log bytes retained per VM (0 = 4 MiB default) |
--log-format | Log format: text (default) or json |
--metrics-addr | HTTP address for Prometheus metrics (e.g. :9090); empty disables metrics |
--ui-addr | HTTP address for the web dashboard (e.g. :8080); empty disables it |
--trace-addr | OTLP gRPC address for trace export (e.g. localhost:4317); empty disables tracing |
--cluster-addr | HTTP address for the cluster gossip endpoint (e.g. :7946); empty disables cluster |
--join | Comma-separated seed node addresses to join (e.g. 10.0.0.2:7946,10.0.0.3:7946) |
Observability and store flags (--metrics-addr, --ui-addr, --trace-addr, --log-format, --vm-log-max-bytes, --vm-store) are covered in more detail in Observability.
Current Command Surface
Root commands currently exposed by the built CLI:
buildcomposeconfigdaemon(Windows only)dnsexecimagesinitinspectkernellogsnetworknodepkgpsrmrmirunsignstatsstatusstopverifyvolume