{"id":50809701,"url":"https://github.com/thesmart/semver-tool-posix","last_synced_at":"2026-06-13T03:34:32.777Z","repository":{"id":342376756,"uuid":"1173775366","full_name":"thesmart/semver-tool-posix","owner":"thesmart","description":"A POSIX-compliant, zero-dependencies shell utility for semver","archived":false,"fork":false,"pushed_at":"2026-03-05T21:22:35.000Z","size":11195,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-31T09:52:17.185Z","etag":null,"topics":["posix","release","semver","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesmart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-05T18:31:10.000Z","updated_at":"2026-03-15T01:33:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thesmart/semver-tool-posix","commit_stats":null,"previous_names":["thesmart/semver-tool-posix"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thesmart/semver-tool-posix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesmart%2Fsemver-tool-posix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesmart%2Fsemver-tool-posix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesmart%2Fsemver-tool-posix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesmart%2Fsemver-tool-posix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesmart","download_url":"https://codeload.github.com/thesmart/semver-tool-posix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesmart%2Fsemver-tool-posix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34271500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["posix","release","semver","shell"],"created_at":"2026-06-13T03:34:31.053Z","updated_at":"2026-06-13T03:34:32.733Z","avatar_url":"https://github.com/thesmart.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semver-tool-posix\n\nA POSIX-compliant, zero-dependencies shell utility for manipulating\n[Semantic Versioning 2.0.0](https://semver.org/) strings.\n\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n\n\u003e Forked from\n\u003e [fsaintjacques/semver-tool@v3.4.0](https://github.com/fsaintjacques/semver-tool/tree/3.4.0)\n\n## Features\n\n- **Bump** version components (major, minor, patch, prerelease, build, release)\n- **Extract** specific parts from a version string\n- **Compare** two versions\n- **Diff** to identify the most significant difference between two versions\n- **Validate** version strings against the semver 2.x spec\n- **Tested** with nearly 100% functional coverage\n- **POSIX** compliant, runs anywhere\n\nCan be combined with `git` pre-commit hooks to guarantee correct versioning.\n\n## Installation\n\n### One-liner\n\n```sh\n# install to `/usr/local/bin`\ncurl -fsSL https://raw.githubusercontent.com/thesmart/semver-tool-posix/main/bin/install.sh | sh\n# install to user dir `~/.local/bin`\ncurl -fsSL https://raw.githubusercontent.com/thesmart/semver-tool-posix/main/bin/install.sh | sh -s -- --prefix ~/.local\n```\n\n### From source\n\n```sh\ngit clone https://github.com/thesmart/semver-tool-posix.git\ncd semver-tool-posix\nmake install\n```\n\n## Usage\n\n```\nsemver bump major \u003cversion\u003e\nsemver bump minor \u003cversion\u003e\nsemver bump patch \u003cversion\u003e\nsemver bump prerel|prerelease [\u003cprerel\u003e] \u003cversion\u003e\nsemver bump build \u003cbuild\u003e \u003cversion\u003e\nsemver bump release \u003cversion\u003e\nsemver get major|minor|patch|prerel|build|release \u003cversion\u003e\nsemver compare \u003cversion\u003e \u003cother_version\u003e\nsemver diff \u003cversion\u003e \u003cother_version\u003e\nsemver validate \u003cversion\u003e\nsemver --help\nsemver --version\n```\n\n### Version Format\n\nA version must match `X.Y.Z[-PRERELEASE][+BUILD]` where X, Y, and Z are non-negative integers.\n\n- **PRERELEASE** — dot-separated identifiers of alphanumeric characters and hyphens, introduced by\n  `-`\n- **BUILD** — dot-separated identifiers of alphanumeric characters and hyphens, introduced by `+`\n\n## Examples\n\n### Bumping\n\n```sh\n$ semver bump patch 0.1.0\n0.1.1\n$ semver bump minor 0.1.1\n0.2.0\n$ semver bump major 0.2.1\n1.0.0\n$ semver bump prerel rc.1 1.0.1\n1.0.1-rc.1\n$ semver bump prerel 1.0.1-rc.1+build4423\n1.0.1-rc.2\n$ semver bump build build.051 1.0.1-rc1.1.0\n1.0.1-rc1.1.0+build.051\n$ semver bump release v0.1.0-SNAPSHOT\n0.1.0\n```\n\n### Comparing\n\n```sh\n$ semver compare 1.0.1-rc1.1.0+build.051 1.0.1\n-1\n$ semver compare v1.0.1-rc1.1.0+build.051 V1.0.1-rc1.1.0\n0\n$ semver compare 1.0.1-rc1.1.0+build.051 1.0.1-rb1.1.0\n1\n```\n\n### Diffing\n\n```sh\n$ semver diff 1.0.1-rc1.1.0+build.051 1.0.1\nprerelease\n$ semver diff 10.1.4-rc4 10.4.2-rc1\nminor\n```\n\n### Extracting\n\n```sh\n$ semver get major 1.2.3\n1\n$ semver get minor 1.2.3\n2\n$ semver get patch 1.2.3\n3\n$ semver get prerel 1.2.3-rc.4\nrc.4\n$ semver get build 1.2.3-rc.4+build.567\nbuild.567\n$ semver get release 1.2.3-rc.4+build.567\n1.2.3\n```\n\n### Validating\n\n```sh\n$ semver validate 1.0.0\nvalid\n$ semver validate 1\ninvalid\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for project structure, shell conventions, and development\nworkflow.\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesmart%2Fsemver-tool-posix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesmart%2Fsemver-tool-posix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesmart%2Fsemver-tool-posix/lists"}