You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><imgalt="cz version --help" src="../../images/cli_help/cz_version___help.svg" /></p>
2105
+
<h2id="project-version-and-scheme">Project version and scheme<aclass="headerlink" href="#project-version-and-scheme" title="Permanent link">¶</a></h2>
2106
+
<ul>
2107
+
<li><strong><code>cz version --project</code></strong> prints the version from your configured <ahref="../../config/version_provider/">version provider</a>.</li>
2108
+
<li><strong><code>cz version MANUAL_VERSION</code></strong> (optional positional) uses that string instead of the provider, so you can try how your configured scheme parses and formats it.</li>
2109
+
</ul>
2110
+
<h2id="components-and-next-version">Components and next version<aclass="headerlink" href="#components-and-next-version" title="Permanent link">¶</a></h2>
2111
+
<ul>
2112
+
<li><strong><code>--major</code></strong>, <strong><code>--minor</code></strong>, <strong><code>--patch</code></strong>: print only that component of the (possibly manual) project version. Requires <code>--project</code>, <code>--verbose</code>, or a manual version.</li>
2113
+
<li><strong><code>--next</code><code>[MAJOR|MINOR|PATCH|NONE]</code></strong>: print the version after applying that bump to the current project or manual version. <code>NONE</code> leaves the version unchanged.</li>
2114
+
<li><strong><code>--tag</code></strong>: print the version formatted with your <code>tag_format</code> (requires <code>--project</code> or <code>--verbose</code>).</li>
2115
+
</ul>
2116
+
<p><code>--next USE_GIT_COMMITS</code> is reserved for a future feature (derive the bump from git history) and is not implemented yet.</p>
0 commit comments