Files
devvm/docs/content/docs/cli/devvm_images.md
T
w3cjandClaude Opus 5.5 cd6fc60576 feat(cli): --json on every command that shows or lists
ls, images, tools, size, ports, network (and -g), network log (and
--blocked), ssh-agent, git-protect, secret, history, space, retention and
doctor take --json: one JSON object on stdout with "version": 1 first,
messages on stderr (ui.DataOnly), lists [] when empty. Settings commands
only show with --json and refuse a value (json_shows_only). doctor --json
replaces --fixes: problems with key, fix (null without one) and message,
warnings, docker and every backend's features; it prints nothing else and
succeeds whatever is missing, and install.sh reads its problems with awk.
TestJSONShapes holds each command's field names and types. Each shape is
documented on its command's page, with the contract under Everyday
commands' Output for scripts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 03:06:56 -08:00

2.1 KiB

title, weight
title weight
devvm images 13

List the images and the shared tools

Synopsis

List the images on every backend, by name: what each one's base started from and its digest, its key, whether it's current, stale (its inputs changed since) or unfinished (a build that didn't finish), the disk it takes and its backend. Then the shared tool images, by the name images have them by: each version, the backend and C library it's built for, the disk it takes, how many VMs use it, and whether it's the tools lock's version, in use, unused, or the lock's and not built yet. Then what they take in all, and what the shared Nix cache takes of its cap.

devvm images [flags]

Options

  -h, --help   help for images
      --json   print it as one JSON object, for scripts

Options inherited from parent commands

      --backend NAME        the NAME of the backend a new VM or image gets (default: the default backend file's, else lima)
      --cpus N              the N CPUs a new VM gets (default: the size file's, else the image's)
      --disk GiB            a new VM's disk in GiB, at least the image's (default: the size file's, else the image's)
      --from IMAGE          the container IMAGE a new VM's or image's base starts from instead of Ubuntu's cloud image: node:24, debian:13, ghcr.io/org/image@sha256:… (default: $DEVVM_FROM's)
      --memory GiB          a new VM's memory in GiB: 16, 16G or 16GiB (default: the size file's, else the image's)
      --network-policy      create the VM with network policy: it reaches only the hosts you allow, through a proxy on this machine, and your secrets stay on this machine (default: devvm network -g's, else asked in a terminal, and on without one)
      --no-network-policy   create the VM without network policy: it reaches anything this machine can
      --ports PORTS         which PORTS a new VM forwards to this machine's localhost: all, none, or a list like 5173,8000-8010 (default: the ports file's, else all)

See also

  • devvm: Open a shell in this folder's VM, creating it first
  • devvm images rm: Delete images, by name or by key