<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mergeway-cli reference on Mergeway</title><link>https://mergewayhq.github.io/docs/reference/cli/</link><description>Recent content in mergeway-cli reference on Mergeway</description><generator>Hugo</generator><language>en</language><atom:link href="https://mergewayhq.github.io/docs/reference/cli/index.xml" rel="self" type="application/rss+xml"/><item><title>mergeway-cli init</title><link>https://mergewayhq.github.io/docs/reference/cli/init/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/init/</guid><description>&lt;h1 id="mergeway-cli-init"&gt;&lt;code&gt;mergeway-cli init&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-init"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Creates the configured entry file without overwriting an existing file.&lt;/p&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; init&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are no arguments or local flags. It inherits all &lt;a href="../"&gt;global flags&lt;/a&gt;; &lt;code&gt;--root&lt;/code&gt; selects the directory and &lt;code&gt;--config&lt;/code&gt; may select a different entry filename.&lt;/p&gt;
&lt;h2 id="output-and-effects"&gt;Output and effects&lt;a class="anchor" href="#output-and-effects"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The command creates missing parent directories and a starter v1 configuration, then prints &lt;code&gt;Initialized repository at &amp;lt;root&amp;gt;&lt;/code&gt;. Re-running it leaves an existing entry file unchanged. Success exits &lt;code&gt;0&lt;/code&gt;; positional arguments or filesystem failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli validate</title><link>https://mergewayhq.github.io/docs/reference/cli/validate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/validate/</guid><description>&lt;h1 id="mergeway-cli-validate"&gt;&lt;code&gt;mergeway-cli validate&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-validate"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; validate &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--phase format|schema|references&lt;span style="color:#f92672"&gt;]&lt;/span&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--phase&lt;/code&gt; is repeatable; with no phase, the order is format, schema, references. Requesting references also runs schema. The inherited &lt;code&gt;--fail-fast&lt;/code&gt; default is &lt;code&gt;false&lt;/code&gt;; &lt;code&gt;--format&lt;/code&gt; defaults to YAML. There are no arguments.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Success writes &lt;code&gt;status: validation succeeded&lt;/code&gt;. Failures write structured errors with phase, entity, identifier, file, and message where available. It never changes repository files. A valid repository exits &lt;code&gt;0&lt;/code&gt;; any validation or loading error exits &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli version</title><link>https://mergewayhq.github.io/docs/reference/cli/version/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/version/</guid><description>&lt;h1 id="mergeway-cli-version"&gt;&lt;code&gt;mergeway-cli version&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-version"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; version&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are no arguments or local flags. &lt;code&gt;--format&lt;/code&gt; (&lt;code&gt;yaml&lt;/code&gt; by default, or &lt;code&gt;json&lt;/code&gt;) controls the result; other inherited repository flags have no effect.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints &lt;code&gt;version&lt;/code&gt;, &lt;code&gt;commit&lt;/code&gt;, and &lt;code&gt;buildDate&lt;/code&gt;. Values depend on the build. It changes no files and exits &lt;code&gt;0&lt;/code&gt; unless output serialization fails.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --format json version&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use this output to identify the binary behind validation or automation results. See the &lt;a href="../"&gt;CLI overview&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli entity list</title><link>https://mergewayhq.github.io/docs/reference/cli/entity-list/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/entity-list/</guid><description>&lt;h1 id="mergeway-cli-entity-list"&gt;&lt;code&gt;mergeway-cli entity list&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-entity-list"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; entity list&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are no arguments or local flags. Repository-selection flags are inherited.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints one entity name per line in alphabetical order and changes no files. A successful load exits &lt;code&gt;0&lt;/code&gt;; configuration errors exit &lt;code&gt;1&lt;/code&gt; on standard error.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full entity list
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Comment&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Post&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Tag&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# User&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Inspect one definition with &lt;a href="../entity-show/"&gt;&lt;code&gt;entity show&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli entity show</title><link>https://mergewayhq.github.io/docs/reference/cli/entity-show/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/entity-show/</guid><description>&lt;h1 id="mergeway-cli-entity-show"&gt;&lt;code&gt;mergeway-cli entity show&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-entity-show"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; entity show &amp;lt;name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;&amp;lt;name&amp;gt;&lt;/code&gt; is required. There are no local flags; inherited &lt;code&gt;--format&lt;/code&gt; defaults to YAML and may be &lt;code&gt;json&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints the effective normalized entity, including inherited fields and source metadata. It changes no files. A known entity exits &lt;code&gt;0&lt;/code&gt;; a missing name, unknown entity, or load error exits &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full --format yaml entity show Post&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;a href="../entity-list/"&gt;&lt;code&gt;entity list&lt;/code&gt;&lt;/a&gt; to discover names or &lt;a href="../config-export/"&gt;&lt;code&gt;config export&lt;/code&gt;&lt;/a&gt; for JSON Schema.&lt;/p&gt;</description></item><item><title>mergeway-cli fmt</title><link>https://mergewayhq.github.io/docs/reference/cli/fmt/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/fmt/</guid><description>&lt;h1 id="mergeway-cli-fmt"&gt;&lt;code&gt;mergeway-cli fmt&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-fmt"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; fmt &lt;span style="color:#f92672"&gt;[&lt;/span&gt;paths...&lt;span style="color:#f92672"&gt;]&lt;/span&gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--in-place|--stdout|--lint&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Local flag&lt;/th&gt;
 &lt;th&gt;Default&lt;/th&gt;
 &lt;th&gt;Effect&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;--in-place&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;effective default&lt;/td&gt;
 &lt;td&gt;Rewrite target files.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;--stdout&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Print one formatted file; do not write.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;--lint&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Check only; list files that differ.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The three modes are mutually exclusive. With no paths, all configured YAML data files are targets. Explicit paths may be files, directories, or globs, but every result must belong to the configured data set.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Default/&lt;code&gt;--in-place&lt;/code&gt; rewrites canonical YAML and reports paths. &lt;code&gt;--stdout&lt;/code&gt; changes nothing. &lt;code&gt;--lint&lt;/code&gt; exits &lt;code&gt;1&lt;/code&gt; when formatting differs and &lt;code&gt;0&lt;/code&gt; when clean. Invalid combinations, unmatched/out-of-scope paths, or I/O failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli config lint</title><link>https://mergewayhq.github.io/docs/reference/cli/config-lint/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/config-lint/</guid><description>&lt;h1 id="mergeway-cli-config-lint"&gt;&lt;code&gt;mergeway-cli config lint&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-config-lint"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; config lint&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are no arguments or local flags; it inherits repository-selection flags.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints &lt;code&gt;configuration valid&lt;/code&gt; when the entry file, includes, and normalized definitions load. It does not load record data and changes no files. Success exits &lt;code&gt;0&lt;/code&gt;; syntax, include, version, or normalization errors exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full config lint&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;a href="../validate/"&gt;&lt;code&gt;validate&lt;/code&gt;&lt;/a&gt; for records and references, or read &lt;a href="../../../how-to/cli/choose-validation/"&gt;which validation to choose&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli config export</title><link>https://mergewayhq.github.io/docs/reference/cli/config-export/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/config-export/</guid><description>&lt;h1 id="mergeway-cli-config-export"&gt;&lt;code&gt;mergeway-cli config export&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-config-export"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; config export --type &amp;lt;entity&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; is required and has no default. There are no arguments. Inherited &lt;code&gt;--format&lt;/code&gt; controls whether the schema document is emitted as YAML (default) or JSON.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints a draft 2020-12 JSON Schema representation and changes no files. Reference fields use &lt;code&gt;x-reference-type&lt;/code&gt;. Success exits &lt;code&gt;0&lt;/code&gt;; missing/unknown entities, load failures, and unsupported reference unions exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full --format json config export --type Post&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See &lt;a href="../../specification/json-schema/"&gt;JSON Schema interoperability&lt;/a&gt; and &lt;a href="../entity-show/"&gt;&lt;code&gt;entity show&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli gen-erd</title><link>https://mergewayhq.github.io/docs/reference/cli/gen-erd/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/gen-erd/</guid><description>&lt;h1 id="mergeway-cli-gen-erd"&gt;&lt;code&gt;mergeway-cli gen-erd&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-gen-erd"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; gen-erd --path &amp;lt;output-file&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--path&lt;/code&gt; is required and has no default. The extension selects Graphviz output (for example &lt;code&gt;.svg&lt;/code&gt; or &lt;code&gt;.png&lt;/code&gt;); with no extension, PNG is used. &lt;code&gt;dot&lt;/code&gt; must be on &lt;code&gt;PATH&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Loads entity definitions, sends a generated graph to &lt;code&gt;dot&lt;/code&gt;, and creates or replaces the requested file. It displays fields, data paths, references, and inheritance. Success exits &lt;code&gt;0&lt;/code&gt;; missing paths, configuration errors, or Graphviz failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli list</title><link>https://mergewayhq.github.io/docs/reference/cli/list/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/list/</guid><description>&lt;h1 id="mergeway-cli-list"&gt;&lt;code&gt;mergeway-cli list&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-list"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; list --type &amp;lt;entity&amp;gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--filter key&lt;span style="color:#f92672"&gt;=&lt;/span&gt;value&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; is required. &lt;code&gt;--filter&lt;/code&gt; has no default and performs simple field equality; path-derived fields are eligible. There are no arguments.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints sorted identifiers, one per line; parent-entity queries include descendants. It changes no files. Success (including no matches) exits &lt;code&gt;0&lt;/code&gt;; missing/unknown types, malformed filters, or load failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full list --type Post --filter author&lt;span style="color:#f92672"&gt;=&lt;/span&gt;user-alice&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Fetch a result with &lt;a href="../get/"&gt;&lt;code&gt;get&lt;/code&gt;&lt;/a&gt; or follow the &lt;a href="../../../how-to/cli/manage-records/"&gt;record lifecycle&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli files</title><link>https://mergewayhq.github.io/docs/reference/cli/files/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/files/</guid><description>&lt;h1 id="mergeway-cli-files"&gt;&lt;code&gt;mergeway-cli files&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-files"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; files &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--type &amp;lt;entity&amp;gt;&lt;span style="color:#f92672"&gt;]&lt;/span&gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--group&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; optionally restricts one entity; &lt;code&gt;--group&lt;/code&gt; (default &lt;code&gt;false&lt;/code&gt;) collapses one-record-per-file wildcard storage to its container pattern. There are no arguments. &lt;code&gt;--format&lt;/code&gt; defaults to YAML.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints sorted &lt;code&gt;{type, file}&lt;/code&gt; entries for YAML includes only; inline and JSON sources are excluded. It changes no files. Success exits &lt;code&gt;0&lt;/code&gt;; unknown entities, ambiguous configured files, or load/filesystem errors exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full --format json files --group&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See &lt;a href="../../../how-to/cli/split-files/"&gt;split schemas and records&lt;/a&gt; and &lt;a href="../list/"&gt;&lt;code&gt;list&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli get</title><link>https://mergewayhq.github.io/docs/reference/cli/get/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/get/</guid><description>&lt;h1 id="mergeway-cli-get"&gt;&lt;code&gt;mergeway-cli get&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-get"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; get --type &amp;lt;entity&amp;gt; &amp;lt;id&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; and &lt;code&gt;&amp;lt;id&amp;gt;&lt;/code&gt; are required. Inherited &lt;code&gt;--format&lt;/code&gt; defaults to YAML. &lt;code&gt;$path&lt;/code&gt; identifiers use the workspace-relative file path and may include &lt;code&gt;../&lt;/code&gt; for external read-only records.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Prints record fields, including declared path-derived fields, and changes no files. Parent types may resolve descendants. Success exits &lt;code&gt;0&lt;/code&gt;; missing arguments, unknown records/types, or load failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full --format json get --type Post post-001&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Discover IDs with &lt;a href="../list/"&gt;&lt;code&gt;list&lt;/code&gt;&lt;/a&gt; or modify local records with &lt;a href="../update/"&gt;&lt;code&gt;update&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli create</title><link>https://mergewayhq.github.io/docs/reference/cli/create/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/create/</guid><description>&lt;h1 id="mergeway-cli-create"&gt;&lt;code&gt;mergeway-cli create&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-create"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; create --type &amp;lt;entity&amp;gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--file &amp;lt;payload&amp;gt;&lt;span style="color:#f92672"&gt;]&lt;/span&gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--id &amp;lt;id&amp;gt;&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; is required. &lt;code&gt;--file&lt;/code&gt; defaults to standard input. &lt;code&gt;--id&lt;/code&gt; overrides a field identifier and is required for &lt;code&gt;$path&lt;/code&gt; entities.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Creates a YAML record through the entity&amp;rsquo;s writable include pattern and prints &lt;code&gt;&amp;lt;Entity&amp;gt; &amp;lt;id&amp;gt; created&lt;/code&gt;. Writes are restricted to the repository root; inline-only, grouped, ambiguous, duplicate, invalid, or external targets fail. Success exits &lt;code&gt;0&lt;/code&gt;; input, validation, resolution, or write errors exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli update</title><link>https://mergewayhq.github.io/docs/reference/cli/update/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/update/</guid><description>&lt;h1 id="mergeway-cli-update"&gt;&lt;code&gt;mergeway-cli update&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-update"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; update --type &amp;lt;entity&amp;gt; --id &amp;lt;id&amp;gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--file &amp;lt;payload&amp;gt;&lt;span style="color:#f92672"&gt;]&lt;/span&gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--merge&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; and &lt;code&gt;--id&lt;/code&gt; are required. &lt;code&gt;--file&lt;/code&gt; defaults to standard input. &lt;code&gt;--merge&lt;/code&gt; defaults to &lt;code&gt;false&lt;/code&gt;: without it, the payload replaces the record; with it, supplied fields overlay existing fields.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Rewrites the backing YAML file and prints &lt;code&gt;&amp;lt;Entity&amp;gt; &amp;lt;id&amp;gt; updated&lt;/code&gt;. External-root records are read-only. Success exits &lt;code&gt;0&lt;/code&gt;; missing/invalid input, unknown records, validation, or write failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;printf &lt;span style="color:#e6db74"&gt;&amp;#39;%s\n&amp;#39;&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#39;title: Updated title&amp;#39;&lt;/span&gt; | mergeway-cli update --type Post --id post-001 --merge&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See &lt;a href="../../../how-to/cli/manage-records/"&gt;manage records&lt;/a&gt; and &lt;a href="../get/"&gt;&lt;code&gt;get&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>mergeway-cli delete</title><link>https://mergewayhq.github.io/docs/reference/cli/delete/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/delete/</guid><description>&lt;h1 id="mergeway-cli-delete"&gt;&lt;code&gt;mergeway-cli delete&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-delete"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; delete --type &amp;lt;entity&amp;gt; &amp;lt;id&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--type&lt;/code&gt; and &lt;code&gt;&amp;lt;id&amp;gt;&lt;/code&gt; are required. The command prompts on standard error; inherited &lt;code&gt;--yes&lt;/code&gt; (default &lt;code&gt;false&lt;/code&gt;) skips confirmation.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Deletes the local backing file and prints &lt;code&gt;&amp;lt;Entity&amp;gt; &amp;lt;id&amp;gt; deleted&lt;/code&gt;. It will not delete an external-root record. Success exits &lt;code&gt;0&lt;/code&gt;; rejection (&lt;code&gt;aborted&lt;/code&gt;), missing/unknown records, or filesystem failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --yes delete --type User user-bob&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Destructive examples belong on temporary copies; follow &lt;a href="../../../how-to/cli/manage-records/"&gt;manage records&lt;/a&gt; and validate references afterward.&lt;/p&gt;</description></item><item><title>mergeway-cli export</title><link>https://mergewayhq.github.io/docs/reference/cli/export/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mergewayhq.github.io/docs/reference/cli/export/</guid><description>&lt;h1 id="mergeway-cli-export"&gt;&lt;code&gt;mergeway-cli export&lt;/code&gt;&lt;a class="anchor" href="#mergeway-cli-export"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli &lt;span style="color:#f92672"&gt;[&lt;/span&gt;global flags&lt;span style="color:#f92672"&gt;]&lt;/span&gt; export &lt;span style="color:#f92672"&gt;[&lt;/span&gt;entities...&lt;span style="color:#f92672"&gt;]&lt;/span&gt; &lt;span style="color:#f92672"&gt;[&lt;/span&gt;--output &amp;lt;path&amp;gt;&lt;span style="color:#f92672"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Entity arguments are optional; omitting them exports all entities. &lt;code&gt;--output&lt;/code&gt; defaults to standard output. Inherited &lt;code&gt;--format&lt;/code&gt; defaults to YAML.&lt;/p&gt;
&lt;h2 id="output-effects-and-exits"&gt;Output, effects, and exits&lt;a class="anchor" href="#output-effects-and-exits"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Produces a map from entity names to ID-sorted record arrays, including derived fields. &lt;code&gt;--output&lt;/code&gt; creates or truncates its destination; otherwise repository files are untouched. Success exits &lt;code&gt;0&lt;/code&gt;; unknown entities, load/serialization errors, or output-file failures exit &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mergeway-cli --root examples/full --format json export User Post --output snapshot.json&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See &lt;a href="../../../how-to/cli/export-data/"&gt;export repository data&lt;/a&gt; and &lt;a href="../get/"&gt;&lt;code&gt;get&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>