$ composer global require nerdial/standard-versioning
$ composer require nerdial/standard-versioning
$ ./vendor/bin/moon
This command creates a config file called moon.yaml, then creates the first tag and commit to the git
$ moon init --current-version 0.1.2 --tag-format "v"
Options
Name | Shortcut | Value | Default | Description |
---|---|---|---|---|
--current-version | -c | 0.0.1 | 0.1.0 | if you have already a git repository with some tags you should tell the package which version you are in. |
--tag-format | -f | v , V or whatever prefix you prefer , you could even pass empty string '' without space in between quotes to have no prefix in your tag name | v | tag format tells that what prefix should be added to the begining of tag name. by default it uses semvar structure like v1.0.0 |
This command will create a new tag in your git repository
$ moon tag major|minor|patch -m "Add new version"
This command will create a new tag in your git repository
$ moon release --token "github personal token"
This command will create a new tag in your git repository
$ moon changelog