Skip to content

Reference

Exact syntax, options, defaults, output formats, and file layouts for every part of Barn.

Look things up here once you know what you want to do. The Guides explain how to do it.

  • Command Reference — Every Linux and macOS command with its options, defaults, examples, and the version that added it.
  • Linux Configuration — The inventory format, every vm_* variable and default, data disks, shares, and drift rules.
  • CLI Contracts — Output modes, the JSON envelope, lifecycle results, and exit codes shared by all commands.
  • Mac Runtime Reference — The barn mac machine model, networks, JSON schemas, failure reasons, and files on disk.
  • Linux Images — The image catalog, aliases, signature checks, local imports, and cache pruning.
  • Image Pipeline — Contributor tooling for validating and normalizing new qcow2 images.

Barn’s public interface is the barn command; Go packages under internal/ may change between releases. barn COMMAND --help shows the options of the build you have installed.