Skip to main content

Automatically create semantic version git tags

Project description

Tag Release

Test status Deploy Status Go Reference Arch User Repsoitory PyPI Go Report Card

Automatically create semantic version git tags.

$ tag
Push tag 'v1.0.1' to origin? (y/N): y
Tag 'v1.0.1' created and pushed to origin.

Usage

By default, tag will increment the smallest digit following SemVer precedence. Incrementing a specific version is achieved by passing the respective flag: --major, --minor, --patch.

Tags can be automatically pushed to a remote repository by passing --push.

tag supports pre-release versions. Creating a pre-release tag is achieved by the using the --suffix flag. For example, --suffix="alpha" will create a tag like v1.0.0-alpha. If the previous tag was for a pre-release, that suffix is preferred. This behavior can be overridden by passing --patch or --suffix="". Only incrementing the trailing pre-release identifier is currently supported.

tag authoritatively discourages duplicate tags for a single commit.

For the most up-to-date options, run tag --help,

$ tag --help
Calculate the next semantic version tag

Usage:
  tag [flags]
  tag [command]

Available Commands:
  completion  Generate completion script
  help        Help about any command

Flags:
      --check             validate that the tag at HEAD has its previous version as an ancestor
      --debug             enable debug logging
  -h, --help              help for tag
      --major             increment the major version
      --metadata string   set the build metadata
      --minor             increment the minor version
      --patch             increment the patch version
      --prefix string     set a prefix for the tag
      --print-only        print the next tag and exit
      --push              create and push the tag to remote
      --remote string     remote repository to push tag to (default "origin")
      --suffix string     set the pre-release suffix (e.g., rc, alpha, beta)
  -v, --version           version for tag

Use "tag [command] --help" for more information about a command.

Autocomplete

tag provides autocomplete for bash, fish, powershell and zsh shells. For example, to enable autocomplete for the bash shell,

tag completion bash | sudo tee /etc/bash_completion.d/tag > /dev/null

Note: bash completion requires the bash-completion package be installed.

For more information, see tag completion <shell> --help for your respective <shell>.

Install

AUR:

tag is available from the Arch User Repository.

yay -S release-tag

pip:

tag is available as a pypi package.

pip install release-tag

go:

go install github.com/jmelahman/tag@latest

github:

Prebuilt packages are available from Github Releases.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

release_tag-0.5.0-py3-none-win_arm64.whl (1.1 MB view details)

Uploaded Python 3Windows ARM64

release_tag-0.5.0-py3-none-win_amd64.whl (1.3 MB view details)

Uploaded Python 3Windows x86-64

release_tag-0.5.0-py3-none-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

release_tag-0.5.0-py3-none-manylinux_2_17_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

release_tag-0.5.0-py3-none-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

release_tag-0.5.0-py3-none-macosx_10_12_x86_64.whl (1.2 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

release_tag-0.5.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file release_tag-0.5.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2ad0dbe2368a05f82ea50a19112850ff4c367c74eff64b9507c43c6ae2ba0297
MD5 76d5285e16791fe559b943e692ac76b0
BLAKE2b-256 86ac6060d62259c1c114c323acb3429761733698f975d07481e2bf422c2efa38

See more details on using hashes here.

File details

Details for the file release_tag-0.5.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e889e426fd5f13e3b46925292ba0fd283b1fb7a68c9e4acfdfca6fb26aef90b3
MD5 8296ba1ebc3d29b28fe2a26e6c54f7f1
BLAKE2b-256 118a10dc4dd857f67fc2f34371c2ed8d58f82736f93ca09f5193a1fd6fe8f330

See more details on using hashes here.

File details

Details for the file release_tag-0.5.0-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cae04265b8d614820be56a2b6c8d2e37d4a78f228523ed58464b69457b6c9001
MD5 a680eaf3b3af1eabcb70c661145c513d
BLAKE2b-256 6da9469d51f79b1cf0b14d9d36b280ca57f32ae68f7eadf0886cb83ae6f27908

See more details on using hashes here.

File details

Details for the file release_tag-0.5.0-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2f7bc1361d5b7a96b74a47ee9a384c225b99e7b797fa21047aa9dfdd87c94dcc
MD5 208cf4b6f6d141a22e8a5a1cdfdea4c3
BLAKE2b-256 ac1f90d11ad6e072c8c522b84f57a7a511dd061e08f61cc7dac1c730fb0c1d73

See more details on using hashes here.

File details

Details for the file release_tag-0.5.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b41a8973aeab6c06d0742789fe3467936676cbe5687f1fd18d66371277e1ca64
MD5 0f69173b932cc1cd817baab7d67c9843
BLAKE2b-256 59f37591e1832f386eaf09852aaed1e25c36705d04efb53cc7f5434d19c88ad3

See more details on using hashes here.

File details

Details for the file release_tag-0.5.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 acb6064771a0a37bd40cb2470905cd896f102fdaa409e82e0cb74d9b87fe9a6f
MD5 05587235bc61ba83f32c3e8226daff70
BLAKE2b-256 4b1d3b687e3c861929574339ce300f5d23025b47e9964ca4834d306924de18ab

See more details on using hashes here.

File details

Details for the file release_tag-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: release_tag-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43fbb7f692febb06cf4d2dccd17ff550989c0f2d05a2afcb9bad23ae285cef5e
MD5 e628c876dd3a9e735eb8d40dce2d92bb
BLAKE2b-256 f7f4db59bd5368edeecfabc65a62ede52438686f3e3c350a05a3e1b8bed2071f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page