oroc version
Inspect or bump the project version defined in your configuration file.
Usage#
oroc version [options]
oroc version <new-version | release> [options]
Options#
| Option | Description |
|---|---|
-C, --config=<path> |
explicit oro.toml/oro.ini to update |
--preid=<id> |
pre-release identifier for pre* / prerelease bumps (default: "rc") |
-V, --verbose |
enable verbose output |
--log-file=<path> |
mirror logs to a JSON file |
-h, --help |
show help |
Notes#
- With no arguments, 'version' prints the current semantic version from the [meta] section.
- With a
<new-version>argument, it sets the version to that exact SemVer 2.0.0 value. - With a release type, it bumps the version using SemVer rules: major, minor, patch, premajor, preminor, prepatch, prerelease For pre* / prerelease bumps, '--preid' controls the pre-release tag (e.g., 'beta').
- The command updates only your app configuration file; it does not call git or create tags.
- oro.toml is the preferred config file, oro.ini is fully supported when oro.toml is absent.
Examples#
oroc version
print the current project version
oroc version minor
bump version to the next minor
oroc version prepatch --preid beta
bump to the next patch and start a 'beta' pre-release
oroc version 1.2.3
set the version explicitly to 1.2.3
Source repository · Edit this page · View Markdown