{"id":19159098,"url":"https://github.com/miloas/tv","last_synced_at":"2025-06-16T09:38:58.726Z","repository":{"id":36209018,"uuid":"204453432","full_name":"Miloas/tv","owner":"Miloas","description":"tag version cli","archived":false,"fork":false,"pushed_at":"2023-04-03T10:17:18.000Z","size":81,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-07T22:58:21.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Miloas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2019-08-26T10:37:01.000Z","updated_at":"2022-04-05T07:58:16.000Z","dependencies_parsed_at":"2025-05-07T08:52:25.447Z","dependency_job_id":null,"html_url":"https://github.com/Miloas/tv","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/Miloas/tv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Ftv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Ftv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Ftv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Ftv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miloas","download_url":"https://codeload.github.com/Miloas/tv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Ftv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260134242,"owners_count":22963870,"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":[],"created_at":"2024-11-09T08:47:40.738Z","updated_at":"2025-06-16T09:38:58.701Z","avatar_url":"https://github.com/Miloas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tv\n[![Build Status](https://github.com/Miloas/tv/workflows/build/badge.svg)](https://github.com/Miloas/tv/workflows/build/badge.svg)\n[![GitHub release](https://img.shields.io/github/release/Miloas/tv.svg)](https://github.com/Miloas/tv/releases/)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Miloas/tv)](https://goreportcard.com/report/github.com/Miloas/tv)\n\n## Installation\n\nInstall tv in **macOS / Linux** through `brew`\n\n```\nbrew tap Miloas/tv\nbrew install tv\n```\n\n## Initialize your project\n\nCreate a `semver.json` file using `tv init app app2` under your project folder. You need to setup at least one app.\n\n```json\n{\n  \"app\": \"0.0.0\",\n  \"app2\": \"0.0.0\"\n}\n```\n\n## Usage\n\n```\n➜  tv git:(master) tv help\nNAME:\n   tv - tag version for ur f** awesome project\n\nUSAGE:\n   tv [global options] command [command options] [arguments...]\n\nVERSION:\n   1.3.8\n\nCOMMANDS:\n   init        init tv for ur project\n   patch       patch version, v0.0.1 -\u003e v0.0.2\n   major       major version, v0.0.1 -\u003e v1.0.0\n   minor       minor version, v0.0.1 -\u003e v0.1.0\n   prerelease  prerelease version, v0.0.1-alpha.1 -\u003e v0.0.1-alpha.2\n   release     release version, v0.0.1-alpha.1 -\u003e v0.0.1\n   prepatch    prepatch version, v0.0.1 -\u003e v0.0.2-alpha.0\n   preminor    preminor version, v0.0.1 -\u003e v0.1.0-alpha.0\n   premajor    preminor version, v0.0.1 -\u003e v1.0.0-alpha.0\n   version     set specific version\n   help, h     Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --help, -h     show help\n   --version, -v  print the version\n```\n\nOptions for commands:\n\n```\n➜  tv git:(master) tv patch --help\nNAME:\n   tv patch - patch version, v0.0.1 -\u003e v0.0.2\n\nUSAGE:\n   tv patch [command options] [arguments...]\n\nOPTIONS:\n   --target value, -t value  set target app\n   --pure, -p                create tag without app name\n   --all, -a                 upgrade version of all apps\n   --dry-run                 do a fake action, won't create real tag\n```\n\n## Examples\n\nFor such a `semver.json` file\n\n```json\n{\n  \"tv\": \"0.1.0\",\n  \"app\": \"0.1.10\"\n}\n```\n\n---\n\nRun `tv patch`, and you will get:\n\n```json\n{\n  \"tv\": \"0.1.1\",\n  \"app\": \"0.1.10\"\n}\n```\n\nand a git tag `v0.1.1+tv`. `tv` is selected if you didn't pass a target to tv\n\n---\n\nRun `tv patch -t app`, and you will get:\n\n```json\n{\n  \"tv\": \"0.1.0\",\n  \"app\": \"0.1.11\"\n}\n```\n\nand a git tag `v0.1.11+app`\n\n---\n\nRun `tv minor -a`, and you will get:\n\n```json\n{\n  \"tv\": \"0.2.0\",\n  \"app\": \"0.2.0\"\n}\n```\n\nand two git tags [`v0.2.0+tv`, `v0.2.0+app`]\n\n---\n\nRun `tv major -ap`, and you will get:\n\n```json\n{\n  \"tv\": \"1.0.0\",\n  \"app\": \"1.0.0\"\n}\n```\n\nand only one git tag `v1.0.0`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiloas%2Ftv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiloas%2Ftv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiloas%2Ftv/lists"}