Repository Commands
2 minute read
Scan, build, and verify static image repositories from repo.yaml and qcow2 artifacts.
This reference covers Barn 1.4.0. All commands below were also available in 1.1.0 and 1.2.0; see the version baseline. All commands inherit the global options.
barn repo scan
Scan one repository root containing repo.yaml and a flat images/ directory. Report tracked, missing, untracked, and unsafe qcow2 files without changing them or requiring qemu-img. Successful scanning exits 0 even with findings; automation must inspect missing and unsafe rather than rely on the exit code alone.
No local options beyond --help; global presentation options still apply.
barn repo build
Validate repo.yaml, inspect the declared qcow2 artifacts with qemu-img, calculate final digests/sizes, and atomically generate catalog.json. Missing or unsafe artifacts fail the build; untracked files are omitted. repo.yaml and image bytes are preserved.
This command does not sign or publish a catalog. Increment the revision for changed contents, keep artifact filenames immutable, and use the separate contributor signing tools before publication. See repository format.
No local options beyond --help; global presentation options still apply.
barn repo verify
Rebuild the expected catalog in memory and require byte-for-byte agreement with the existing catalog.json, using repo.yaml and actual image bytes. Requires qemu-img. It checks repository consistency; detached-signature verification belongs to catalog activation and the signing tools.
No local options beyond --help; global presentation options still apply.
Implementation
The version baseline identifies the released source and the changes across 1.1.0–1.4.0.