{"id":15678304,"url":"https://github.com/silverwind/versions","last_synced_at":"2025-05-07T01:43:24.372Z","repository":{"id":39706843,"uuid":"147463603","full_name":"silverwind/versions","owner":"silverwind","description":"CLI to flexibly increment a project's version","archived":false,"fork":false,"pushed_at":"2025-04-02T08:48:22.000Z","size":1633,"stargazers_count":12,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T19:46:38.995Z","etag":null,"topics":["cli","git-tag","nodejs","semantic-versioning","version-bump","version-update"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-05T05:18:03.000Z","updated_at":"2025-04-02T08:48:25.000Z","dependencies_parsed_at":"2023-02-10T03:50:27.432Z","dependency_job_id":"77fa0adc-f814-4c29-a7cd-d1665a81bb10","html_url":"https://github.com/silverwind/versions","commit_stats":{"total_commits":336,"total_committers":2,"mean_commits":168.0,"dds":"0.0029761904761904656","last_synced_commit":"9ee4c89134ee53e483cb22e5f0f507bd1b6b0e51"},"previous_names":["silverwind/ver"],"tags_count":116,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fversions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fversions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fversions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fversions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverwind","download_url":"https://codeload.github.com/silverwind/versions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798495,"owners_count":21805876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","git-tag","nodejs","semantic-versioning","version-bump","version-update"],"created_at":"2024-10-03T16:19:49.498Z","updated_at":"2025-05-07T01:43:24.351Z","avatar_url":"https://github.com/silverwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# versions\n[![](https://img.shields.io/npm/v/versions.svg?style=flat)](https://www.npmjs.org/package/versions) [![](https://img.shields.io/npm/dm/versions.svg)](https://www.npmjs.org/package/versions) [![](https://packagephobia.com/badge?p=versions)](https://packagephobia.com/result?p=versions)\n\n\u003e CLI to flexibly increment a project's version\n\n## Usage\n```bash\n# increment patch version of current project\nnpx versions patch\n```\n\n## Bun and Deno\n\n```bash\nbunx versions\ndeno run -A npm:versions\n```\n\n## Options\n```\nusage: versions [options] patch|minor|major [files...]\n\n  Options:\n    -a, --all             Add all changed files to the commit\n    -b, --base \u003cversion\u003e  Base version. Default is from latest git tag or 0.0.0\n    -p, --prefix          Prefix version string with a \"v\" character. Default is none\n    -c, --command \u003ccmd\u003e   Run command after files are updated but before git commit and tag\n    -d, --date [\u003cdate\u003e]   Replace dates in format YYYY-MM-DD with current or given date\n    -m, --message \u003cstr\u003e   Custom tag and commit message\n    -r, --replace \u003cstr\u003e   Additional replacements in the format \"s#regexp#replacement#flags\"\n    -g, --gitless         Do not perform any git action like creating commit and tag\n    -D, --dry             Do not create a tag or commit, just print what would be done\n    -v, --version         Print the version\n    -h, --help            Print this help\n\n  The message and replacement strings accept tokens _VER_, _MAJOR_, _MINOR_, _PATCH_.\n\n  Examples:\n    $ versions patch\n    $ versions -c 'npm run build' -m 'Release _VER_' minor file.css\n```\n\n## Signing commits and tags\n\nTo automatically sign commits and tags created by `versions` with GPG add this to your `~/.gitconfig`:\n\n```ini\n[user]\n  signingkey = \u003ckeyid\u003e\n[commit]\n  gpgSign = true\n[tag]\n  forceSignAnnotated = true\n[push]\n  gpgSign = if-asked\n```\n\n## CI environments\n\nCI environments usually do incomplete git checkouts without tags. Fetch tags first:\n\n```bash\ngit fetch --tags --force\n```\n\n© [silverwind](https://github.com/silverwind), distributed under BSD licence\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fversions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverwind%2Fversions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fversions/lists"}