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:
  -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.3.9-py3-none-win_arm64.whl (1.1 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.12+ x86-64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: release_tag-0.3.9-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.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 e74a9ed0965e9e404aa9132e85a981829d05d3d986e4136d38a7af0c67e4a484
MD5 0786e66846452c36cb8dc7f906a64f37
BLAKE2b-256 d5b5572fd713b55c85b9cab6808967a00244ea230adeb194ba53403e81363977

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.9-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.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 af49dc85994f0bd2c787e516cd29bbffc4320e8bc2588a0e945be94b41ad0f3f
MD5 13ec66a2e32f8b89963dba2fa3ee4611
BLAKE2b-256 edcece0dcb24f5cf060d5ee44a5a2abba28c0091df0144bafe9b4315e3da73b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.9-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.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c41f0000d7de010e3d79e6abcd0aba3be2688744dc9018ac7974a881eef9caf5
MD5 75ab79fba0e870ffab7f99a019283dca
BLAKE2b-256 54e79f78dd406cc2385540ed7406a0a44a0d6bb59b135c5664b528d169e4b5ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.9-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.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 eece75dfbc31834e68917fee0c3f6b0d0cbc1f97ecb7fb4ef3ae8a656192e1c2
MD5 c82a54a68b9f572786720c808c512568
BLAKE2b-256 c13cad87b5ebe0b2c679703aef8337f6b727f9ecae7ee5ee5f25ebea6b1a08cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.9-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.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0991b82806c5757d2c316a5ef669bc3ef80baa360d8f92efa52589cc9c645b26
MD5 add87ec0d88bb3032f5e13b7f74abe4b
BLAKE2b-256 a95111a249b567632059de99ecc9aa01b491b047e2c973f00768cb9361de4d98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.9-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.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2d5ae101027267dce3966a24c9a33d20b47cc6372e98778e598c62c7cf50a49b
MD5 e17817fb2d08acf3a4396c6664a4f225
BLAKE2b-256 e0c9d2728664f8dadaf933f38faac31267673bf97637299e9080c18ec559cecd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","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.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 34807f385ac76a8ab98a57486d52efbb04c508ce465c5735a4a6a0624129f8e4
MD5 8d0e8320acb28981f9bf7d41462e01f4
BLAKE2b-256 f64df41ab3a947f8607a7cf970a7d0dc7b0607fa7a91729a47afbe40f0558e70

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