<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Commands on bumpversion</title><link>https://romnn.github.io/bumpversion/docs/commands/</link><description>Recent content in Commands on bumpversion</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://romnn.github.io/bumpversion/docs/commands/index.xml" rel="self" type="application/rss+xml"/><item><title>Bumping</title><link>https://romnn.github.io/bumpversion/docs/commands/bump/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://romnn.github.io/bumpversion/docs/commands/bump/</guid><description>&lt;h1 id="bumping"&gt;Bumping&lt;a class="anchor" href="#bumping"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="selecting-a-component"&gt;Selecting a component&lt;a class="anchor" href="#selecting-a-component"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;There are three equivalent ways to bump, and one way to bypass component selection entirely:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bumpversion patch &lt;span class="c1"&gt;# shorthand for the standard components&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bumpversion bump patch &lt;span class="c1"&gt;# explicit; works for any component&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bumpversion bump pre_label &lt;span class="c1"&gt;# a component you defined in `parse`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bumpversion --new-version 2.0.0-rc.1 &lt;span class="c1"&gt;# set the version directly&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;major&lt;/code&gt;, &lt;code&gt;minor&lt;/code&gt;, and &lt;code&gt;patch&lt;/code&gt; exist as their own commands because they are what most projects use. Any other component — anything with a named capture group in your &lt;a href="https://romnn.github.io/bumpversion/docs/configuration/versioning/"&gt;&lt;code&gt;parse&lt;/code&gt; pattern&lt;/a&gt; — goes through &lt;code&gt;bump &amp;lt;component&amp;gt;&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Inspecting</title><link>https://romnn.github.io/bumpversion/docs/commands/show/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://romnn.github.io/bumpversion/docs/commands/show/</guid><description>&lt;h1 id="inspecting"&gt;Inspecting&lt;a class="anchor" href="#inspecting"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Two commands report without changing anything. Both skip the dirty-tree check, so they work in a repository with uncommitted work.&lt;/p&gt;
&lt;h2 id="show-bump"&gt;&lt;code&gt;show-bump&lt;/code&gt;&lt;a class="anchor" href="#show-bump"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Computes the next version for a component and prints it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bumpversion show-bump patch&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="bv-term"&gt;&lt;pre class="bv-term__body"&gt;&lt;span class="term-fg32 term-fg1"&gt;$&lt;/span&gt; bumpversion show-bump patch
&amp;nbsp;
old_version=1.4.2
new_version=1.4.3
&amp;nbsp;
&lt;span class="term-fg32 term-fg1"&gt;$&lt;/span&gt; bumpversion show-bump minor
&amp;nbsp;
old_version=1.4.2
new_version=1.5.0
&amp;nbsp;
&lt;span class="term-fg32 term-fg1"&gt;$&lt;/span&gt; bumpversion show-bump major
&amp;nbsp;
old_version=1.4.2
new_version=2.0.0&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The output is two &lt;code&gt;name=value&lt;/code&gt; lines, which is easy to consume from a shell:&lt;/p&gt;</description></item><item><title>CLI reference</title><link>https://romnn.github.io/bumpversion/docs/commands/cli-reference/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://romnn.github.io/bumpversion/docs/commands/cli-reference/</guid><description>&lt;h1 id="cli-reference"&gt;CLI reference&lt;a class="anchor" href="#cli-reference"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;div class="bv-term"&gt;&lt;pre class="bv-term__body"&gt;&lt;span class="term-fg32 term-fg1"&gt;$&lt;/span&gt; bumpversion --help
&amp;nbsp;
bump git version
&amp;nbsp;
Usage: bumpversion [OPTIONS] [ARGS]... [COMMAND]
&amp;nbsp;
Commands:
 major
 minor
 patch
 show
 show-bump
 bump
 help Print this message or the help of the given subcommand(s)
&amp;nbsp;
Arguments:
 [ARGS]...
&amp;nbsp;
Options:
 --dir &amp;lt;DIR&amp;gt;
 repository directory to run bumpversion in [env: BUMPVERSION_DIR=]
 --config-file &amp;lt;CONFIG_FILE&amp;gt;
 config file to read most of the variables from [env: BUMPVERSION_CONFIG_FILE=]
 --color &amp;lt;COLOR_CHOICE&amp;gt;
 enable or disable color [env: BUMPVERSION_COLOR=]
 -v, --verbose...
 Increase logging verbosity
 -q, --quiet...
 Decrease logging verbosity
 --log &amp;lt;LOG_LEVEL&amp;gt;
 Log level. When using a more sophisticated logging setup using RUST_LOG environment variable, this option is overwritten. [env: BUMPVERSION_LOG_LEVEL=]
 --allow-dirty
 don&amp;#39;t abort if working directory is dirty [env: BUMPVERSION_ALLOW_DIRTY=]
 --no-allow-dirty
 explicitly abort if dirty [env: BUMPVERSION_NO_ALLOW_DIRTY=]
 --current-version &amp;lt;CURRENT_VERSION&amp;gt;
 version that needs to be updated [env: BUMPVERSION_CURRENT_VERSION=]
 --new-version &amp;lt;NEW_VERSION&amp;gt;
 new version that should be in the files [env: BUMPVERSION_NEW_VERSION=]
 --parse &amp;lt;PARSE_VERSION_PATTERN&amp;gt;
 regex parsing the version string [env: BUMPVERSION_PARSE=]
 --serialize &amp;lt;SERIALIZE_VERSION_PATTERNS&amp;gt;
 how to format what is parsed back to a version [env: BUMPVERSION_SERIALIZE=]
 --search &amp;lt;SEARCH&amp;gt;
 template for complete string to search [env: BUMPVERSION_SEARCH=]
 --replace &amp;lt;REPLACE&amp;gt;
 template for complete string to replace [env: BUMPVERSION_REPLACE=]
 --regex
 treat the search parameter as a regular expression [env: BUMPVERSION_REGEX=]
 --no-regex
 explicitly do not treat the search parameter as a regular expression [env: BUMPVERSION_NO_REGEX=]
 --no-configured-files
 only replace the version in files specified on the command line, ignoring the files from the configuration file [env: BUMPVERSION_NO_CONFIGURED_FILES=]
 --ignore-missing-files
 ignore any missing files when searching and replacing in files [env: BUMPVERSION_IGNORE_MISSING_FILES=]
 --no-ignore-missing-files
 do not allow missing files when searching and replacing in files [env: BUMPVERSION_NO_IGNORE_MISSING_FILES=]
 --ignore-missing-version
 ignore any missing versions when searching and replacing in files [env: BUMPVERSION_IGNORE_MISSING_VERSION=]
 --no-ignore-missing-version
 do not allow missing versions when searching and replacing in files [env: BUMPVERSION_NO_IGNORE_MISSING_VERSION=]
 -n, --dry-run
 don&amp;#39;t write any files, just pretend. [env: BUMPVERSION_DRY_RUN=]
 --commit
 commit to version control [env: BUMPVERSION_COMMIT=]
 --no-commit
 do not commit to version control [env: BUMPVERSION_NO_COMMIT=]
 --tag
 create a tag in version control [env: BUMPVERSION_TAG=]
 --no-tag
 do not create a tag in version control [env: BUMPVERSION_NO_TAG=]
 --sign-tags
 sign tags if created [env: BUMPVERSION_SIGN_TAGS=]
 --no-sign-tags
 do not sign tags if created [env: BUMPVERSION_NO_SIGN_TAGS=]
 --tag-name &amp;lt;TAG_NAME&amp;gt;
 tag name (only works with --tag) [env: BUMPVERSION_TAG_NAME=]
 --tag-message &amp;lt;TAG_MESSAGE&amp;gt;
 tag message [env: BUMPVERSION_TAG_MESSAGE=]
 -m, --message &amp;lt;COMMIT_MESSAGE&amp;gt;
 commit message [env: BUMPVERSION_MESSAGE=]
 --commit-args &amp;lt;COMMIT_ARGS&amp;gt;
 extra arguments to commit command [env: BUMPVERSION_COMMIT_ARGS=]
 -h, --help
 Print help
 -V, --version
 Print version&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Every flag below is &lt;strong&gt;global&lt;/strong&gt;: accepted at the top level and on every subcommand alike. Each also has an environment variable, named &lt;code&gt;BUMPVERSION_&lt;/code&gt; plus the flag in upper snake case.&lt;/p&gt;</description></item></channel></rss>