# Reference

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

---

LLMS index: [llms.txt](/v1.5/llms.txt)

---

Look things up here once you know what you want to do. The [Guides](../start/) explain how to do it.

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

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.

---

Section pages:

- [Command Reference](/v1.5/docs/reference/commands/): Every Barn command with syntax, all local options, defaults, examples, and version availability.
- [Configuration](/v1.5/docs/reference/configuration/): The inventory file that defines a Linux lab — its shape, the variables Barn reads, their defaults, and how flags and environment variables override them.
- [CLI Contracts](/v1.5/docs/reference/cli/): Output modes, the JSON/YAML envelope, exit codes, prompts, lifecycle results, and recovery rules shared by every Barn command.
- [Mac Runtime Reference](/v1.5/docs/reference/mac/): What a barn mac machine owns, how it is networked, and the JSON results, failure reasons, and files that scripts rely on.
- [Images](/v1.5/docs/reference/images/): Signed catalogs, built-in aliases, repository selection, local cache verification, imports, and pruning.
- [Self-hosted repositories and official signatures](/v1.5/docs/reference/repository-signing/): Build a repository from local qcow2 images and verify official Barn releases.
- [Image Pipeline](/v1.5/docs/reference/image-pipeline/): Contributor tools that validate or offline-normalize qcow2 candidates for Barn's official Linux images.
