Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including versioning-tool with all npm packages installed. Try it out:

var versioningTool = require("versioning-tool")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

versioning-tool v2018.10.8-11

CLI tool for updating npm package version and tagging git repos for release.


CLI tool for updating npm package version and tagging git repos for release.

oclif Version Build Status Open Issues Downloads/week License

* [versioning-tool](#versioning-tool) * [Usage](#usage) * [Version Formatting](#version-formatting) * [Commands](#commands)


```sh-session $ npm install -g versioning-tool $ vt COMMAND running command... $ vt (-v|--version|version) versioning-tool/2018.10.8-11 linux-x64 node-v10.11.0 $ vt --help [COMMAND] USAGE $ vt COMMAND ... ```

Version Formatting

You can specify the date format that will be used by adding the following section to your package.json file:

"versioning": {
  "date-format": ""


* [`vt current`](#vt-current) * [`vt help [COMMAND]`](#vt-help-command) * [`vt update`](#vt-update)

vt current

Displays current version

  $ vt current

  -h, --help  show CLI help

See code: src/commands/current.ts

vt help [COMMAND]

display help for vt

  $ vt help [COMMAND]

  COMMAND  command to show help for

  --all  see all commands in CLI

See code: @oclif/plugin-help

vt update

Adds a git tag for next version and update package.json to match.

  $ vt update

  -f, --format=format    Format that the date portion should be in
  -h, --help             show CLI help
  -m, --message=message  The message you want attached to the git tag
  -p, --push             Run a git push and git push --tags after updating the version
  -v, --version=version  Force a new version number

See code: src/commands/update.ts

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free