<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Command Reference on Barn</title>
    <link>https://barn.pgsty.com/docs/reference/commands/</link>
    <description>Recent content in Command Reference on Barn</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Wed, 11 Nov 2026 00:00:00 +0800</lastBuildDate>
    
    
      <atom:link href="https://barn.pgsty.com/docs/reference/commands/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>macOS Commands</title>
        <link>https://barn.pgsty.com/docs/reference/commands/mac/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/mac/</guid>
        <description>&lt;p&gt;Manage named native macOS VMs, desktop access, restore images, and shared bases.&lt;/p&gt;&#xA;&lt;p&gt;All options below are present in 1.1.0 and the reviewed development tree.&lt;/p&gt;&#xA;&lt;p&gt;Native macOS VMs require Apple Silicon, macOS 27+, and the matching &lt;code&gt;Barn.app&lt;/code&gt; native app bundle, invoked as the logged-in desktop user. Their state lives under &lt;code&gt;$BARN_HOME/mac&lt;/code&gt; and is independent of the Linux inventory.&lt;/p&gt;&#xA;&lt;p&gt;For an optional name, Barn selects the sole existing VM or &lt;code&gt;mac1&lt;/code&gt;; multiple VMs without &lt;code&gt;mac1&lt;/code&gt; require an explicit name. &lt;code&gt;configure&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, and &lt;code&gt;destroy&lt;/code&gt; always require names. &lt;code&gt;start&lt;/code&gt; and &lt;code&gt;stop&lt;/code&gt; accept multiple names or &lt;code&gt;--all&lt;/code&gt;. At most two macOS VMs can run concurrently across apps on the host, including an active base installation. See &lt;a href=&#34;../../mac/&#34;&gt;machine rules, networking, output, and files&lt;/a&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Host Network Commands</title>
        <link>https://barn.pgsty.com/docs/reference/commands/network/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/network/</guid>
        <description>&lt;p&gt;Inspect, install, and remove the fixed-IP network used by Linux guests.&lt;/p&gt;&#xA;&lt;p&gt;This reference covers &lt;strong&gt;Barn 1.2.0&lt;/strong&gt;. Option tables distinguish options also available in &lt;strong&gt;1.1.0&lt;/strong&gt; from additions in &lt;strong&gt;1.2.0&lt;/strong&gt;; see the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#versions&#34;&gt;version baseline&lt;/a&gt;. All commands inherit the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#global-options&#34;&gt;global options&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;barn-network-status&#34;&gt;&lt;code&gt;barn network status&lt;/code&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-d11eb083-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-d11eb083-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;barn network status [flags]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Inspect the one host-wide Linux-guest network: backend, installed CIDR, ownership, health, and lifecycle preflight findings. &lt;code&gt;--cidr&lt;/code&gt; checks an expected subnet; omitting it inspects the installed one. It is read-only. This network is separate from each native Mac VM’s private network.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Repository Commands</title>
        <link>https://barn.pgsty.com/docs/reference/commands/repo/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/repo/</guid>
        <description>&lt;p&gt;Scan, build, and verify static image repositories from repo.yaml and qcow2 artifacts.&lt;/p&gt;&#xA;&lt;p&gt;This reference covers &lt;strong&gt;Barn 1.2.0&lt;/strong&gt;. Option tables distinguish options also available in &lt;strong&gt;1.1.0&lt;/strong&gt; from additions in &lt;strong&gt;1.2.0&lt;/strong&gt;; see the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#versions&#34;&gt;version baseline&lt;/a&gt;. All commands inherit the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#global-options&#34;&gt;global options&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;barn-repo-scan&#34;&gt;&lt;code&gt;barn repo scan&lt;/code&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-45c845d8-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-45c845d8-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;barn repo scan &amp;lt;root&amp;gt; [flags]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Scan one repository root containing &lt;code&gt;repo.yaml&lt;/code&gt; and a flat &lt;code&gt;images/&lt;/code&gt; directory. Report tracked, missing, untracked, and unsafe qcow2 files without changing them or requiring &lt;code&gt;qemu-img&lt;/code&gt;. Successful scanning exits &lt;code&gt;0&lt;/code&gt; even with findings; automation must inspect &lt;code&gt;missing&lt;/code&gt; and &lt;code&gt;unsafe&lt;/code&gt; rather than rely on the exit code alone.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Image Commands</title>
        <link>https://barn.pgsty.com/docs/reference/commands/image/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/image/</guid>
        <description>&lt;p&gt;Refresh signed catalogs, inspect or download images, import local files, and prune caches.&lt;/p&gt;&#xA;&lt;p&gt;This reference covers &lt;strong&gt;Barn 1.2.0&lt;/strong&gt;. Option tables distinguish options also available in &lt;strong&gt;1.1.0&lt;/strong&gt; from additions in &lt;strong&gt;1.2.0&lt;/strong&gt;; see the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#versions&#34;&gt;version baseline&lt;/a&gt;. All commands inherit the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#global-options&#34;&gt;global options&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Official repositories and HTTP sources require a trusted detached signature. An explicitly selected custom HTTPS repository or local directory can be unsigned, provided the source is exactly that repository&amp;rsquo;s &lt;code&gt;catalog.json&lt;/code&gt;. Any supplied signature must verify. See &lt;a href=&#34;../../images/#trust-and-verification&#34;&gt;catalog trust&lt;/a&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Guest Access and Hosts</title>
        <link>https://barn.pgsty.com/docs/reference/commands/access/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/access/</guid>
        <description>&lt;p&gt;Connect to Linux guests, run scripts, read logs, and publish SSH or hosts entries.&lt;/p&gt;&#xA;&lt;p&gt;This reference covers &lt;strong&gt;Barn 1.2.0&lt;/strong&gt;. Option tables distinguish options also available in &lt;strong&gt;1.1.0&lt;/strong&gt; from additions in &lt;strong&gt;1.2.0&lt;/strong&gt;; see the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#versions&#34;&gt;version baseline&lt;/a&gt;. All commands inherit the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#global-options&#34;&gt;global options&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;barn-ssh&#34;&gt;&lt;code&gt;barn ssh&lt;/code&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-52ad1f05-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-52ad1f05-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;barn ssh [flags] [node] [-- command...]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Open an interactive SSH session on the selected prepared node, defaulting to the prepared control node (or first prepared node). Remote commands require &lt;code&gt;--&lt;/code&gt;; arguments after it are joined for the remote shell like ordinary &lt;code&gt;ssh&lt;/code&gt;. Put Barn options before the separator. Node selectors are resolved node names, not IP addresses, aliases, or groups.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Linux Lifecycle</title>
        <link>https://barn.pgsty.com/docs/reference/commands/lifecycle/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/lifecycle/</guid>
        <description>&lt;p&gt;Plan, create, start, resize, inspect, and explicitly remove Linux virtual machines.&lt;/p&gt;&#xA;&lt;p&gt;This reference covers &lt;strong&gt;Barn 1.2.0&lt;/strong&gt;. Option tables distinguish options also available in &lt;strong&gt;1.1.0&lt;/strong&gt; from additions in &lt;strong&gt;1.2.0&lt;/strong&gt;; see the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#versions&#34;&gt;version baseline&lt;/a&gt;. All commands inherit the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#global-options&#34;&gt;global options&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Node arguments are resolved names such as &lt;code&gt;meta&lt;/code&gt; and &lt;code&gt;node-1&lt;/code&gt;. Omit them to select all nodes in the command’s inventory/applied scope. IP addresses, groups, and &lt;code&gt;vm_alias&lt;/code&gt; are not selectors. &lt;code&gt;plan&lt;/code&gt;, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, &lt;code&gt;resize&lt;/code&gt;, and &lt;code&gt;recreate&lt;/code&gt; read &lt;code&gt;-f&lt;/code&gt;, then the current directory’s inventory, then applied state. Other lifecycle commands use applied state directly.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Preparation and Utilities</title>
        <link>https://barn.pgsty.com/docs/reference/commands/setup/</link>
        <pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate>
        
        <guid>https://barn.pgsty.com/docs/reference/commands/setup/</guid>
        <description>&lt;p&gt;Initialize inventories, prepare the host, validate configuration, and inspect the CLI.&lt;/p&gt;&#xA;&lt;p&gt;This reference covers &lt;strong&gt;Barn 1.2.0&lt;/strong&gt;. Option tables distinguish options also available in &lt;strong&gt;1.1.0&lt;/strong&gt; from additions in &lt;strong&gt;1.2.0&lt;/strong&gt;; see the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#versions&#34;&gt;version baseline&lt;/a&gt;. All commands inherit the &lt;a href=&#34;https://barn.pgsty.com/docs/reference/commands/#global-options&#34;&gt;global options&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;barn-setup&#34;&gt;&lt;code&gt;barn setup&lt;/code&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-80038ff2-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;text&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-80038ff2-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;barn setup [meta|dual|trio|full] [flags]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Prepare host packages, the fixed-IP network, images, and the selected inventory. It does not create the Linux VMs: run &lt;code&gt;barn up&lt;/code&gt; afterward. With no template or &lt;code&gt;-f&lt;/code&gt;, reuse the discovered inventory or generate &lt;code&gt;meta&lt;/code&gt;. The templates &lt;code&gt;meta&lt;/code&gt;, &lt;code&gt;dual&lt;/code&gt;, &lt;code&gt;trio&lt;/code&gt;, and &lt;code&gt;full&lt;/code&gt; contain 1, 2, 3, and 4 nodes. &lt;code&gt;-c&lt;/code&gt; and specification flags customize a generated template; explicit specification flags cannot be used to rewrite an existing inventory. In 1.2.0, specification environment variables are also ignored when setup reuses an inventory.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
