Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/princed/update-version

Update any part of version in package.json from command line
https://github.com/princed/update-version

npm package-json version

Last synced: 1 day ago
JSON representation

Update any part of version in package.json from command line

Awesome Lists containing this project

README

        

# update-version

Update any part of version in `package.json` from command line.

## Installation

`npm i -g update-version`

## Usage

Run `update-version -- ` in folder with `package.json` to set minor version.
Example: `update-version --minor 1` updates `2.0.3` to `2.1.3`.
Several flags could be used in one command.

### Possible flags

* major
* minor
* patch
* release
* build

which correspond to following version parts: `major.minor.patch-release+build`

Provide no value to flag to reset it (remove for `release` and `build`, and set to 0 for others).
Example: `update-version --patch 4 --release` updates `2.0.3-alpha.1` to `2.0.4`.