Files
devvm/docs/content/docs/cli/devvm_build.md
T
w3cjandClaude Opus 5.5 0b03f334fb feat(cli): help in groups, with short texts, examples and each command's docs page
devvm --help lists the commands in groups: Your VM, Change your VM,
Images, Disk space and This machine, with help under Cobra's Additional
Commands. A group whose commands don't exist yet, such as Links between
VMs, stays out of the help.

Each command's Long is one to three sentences, and the rules it held are
on the command's docs page. Every visible command has an Example, with
the most common invocations first, each with a comment. Flag
descriptions are shorter. Each help ends with the address of the
command's docs page, and the root's also ends with the issue tracker.

- internal/cli/help.go: commandGroups, addGroups, addDocs (Cobra's usage
  template with Docs and Issues sections), examples
- internal/msg/docs.go: commandDocs, CommandDoc, CommandDocURL,
  IssuesURL; TestDocLinks checks commandDocs (user pages only)
- docgen: each reference page has a Docs section before See also
- docs: commands.md in the help's groups, with new sections on
  restarting and stopping and on deleting a VM; install.md has doctor's
  engine, feature values, Docker and CA notes; Contributing describes a
  command's help
- tests: TestExamples, TestHelpGroupsAndDocs, TestAddGroups,
  TestWithDocs, TestCheckCommandDocs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 04:39:39 -08:00

1.3 KiB

title, weight
title weight
devvm build 3

Build an image and the images under it, unless they're built

Synopsis

Build an image, the images under it and the shared tools it names, unless they're built. IMAGE is base, or layers joined with + bottom first, so foo+bar is bar on foo on base, with any shared tools, such as node+foo+claude.

devvm build IMAGE [flags]

Examples

  devvm build node+claude            # build base and the node and Claude Code tools
  devvm build foo+bar                # build base, foo and foo+bar
  devvm build base --backend smolvm  # build base on the smolvm backend

Options

      --backend NAME   the backend NAME to use (default: devvm setup's, else lima)
      --from IMAGE     the container IMAGE base starts from, such as node:24, instead of Ubuntu's cloud image (default: $DEVVM_FROM)
  -h, --help           help for build

Options inherited from parent commands

      --no-input   never ask, and fail where devvm would ask, naming the flag that answers it
  -v, --verbose    show the output of the commands devvm runs instead of a status line

Docs

The docs page for devvm build explains it in full.

See also

  • devvm: Open a shell in this folder's VM, creating it first