Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flesler/uver-cli
CLI for uver, bump the version on package.json and other files
https://github.com/flesler/uver-cli
Last synced: 2 months ago
JSON representation
CLI for uver, bump the version on package.json and other files
- Host: GitHub
- URL: https://github.com/flesler/uver-cli
- Owner: flesler
- License: mit
- Created: 2014-08-26T19:18:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-18T00:10:54.000Z (about 9 years ago)
- Last Synced: 2024-08-31T12:38:31.966Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# uver-cli
Bump the version on package.json and other files from the command-line
## Use as a library
To bump file versions from within your code, check out [uver](https://github.com/flesler/uver)
## Installation
[![NPM](https://nodei.co/npm/uver-cli.png?compact=true)](https://npmjs.org/package/uver-cli)
``` bash
$ npm install -g uver-cli
```## Options
```bash
$ uver --helpUsage: uver [options]
Options:
-h, --help output usage information
-p, --patch Update patch version (default)
-m, --minor Update minor version
-M, --major Update major version
-i, --index Update version on specified index (0 for major)
-r, --revert Decrement instead of increment
-R, --root Where to look for the source file ($CWD)
-f, --filename Filename of the source (package.json)
-v, --ver Specify a fixed version
-s, --silent Do not output new version to console
-o, --output [path] Save file to `path` or output to stdout
```You can check out the docs on [uver](https://github.com/flesler/uver) for more detail.
## Examples
```bash
# Increment patch version of package.json on current directory
uver
``````bash
# Increment minor version of bower.json on current directory
uver --minor -f bower.json
``````bash
# Decrement major version of package.json on current directory
uver --index 0 -r
``````bash
# Set version to 1.2.3
uver -v 1.2.3
``````bash
# Pipe to stdout and do something with it
uver -o > package.json.bkp
```
## Why not npm versionCheck [uver](https://github.com/flesler/uver)'s docs for an explanation
## LICENSE
The MIT License (MIT)
Copyright (c) 2014 Ariel Flesler
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.