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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

release_tag-0.4.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.4.0-py3-none-manylinux_2_17_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.12+ x86-64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: release_tag-0.4.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.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.4.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 83dba10a8c4953f303ed42a6539ff6a4b9459a7254d109e70af05743101ad329
MD5 e7419a83c0897ed1491aaa558d6e5de3
BLAKE2b-256 711409b10a00b62c7322127e27e7549b717fbb4f67332a7e68137caebbb5571f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.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.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.4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 327ad40273ac5045bd074906321f5f604e0384059c08d6c52d262c3b195e3ab8
MD5 97f6ae3a94b4173d745eba2d3cf7102c
BLAKE2b-256 df18a26d0e539852a235ad086549b22f02f236642dc4ce082385fcd9bdeceeaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.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.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.4.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e055414782ad9be3e207b6635e6a8ece42df542d3fff6193fe1a682fd9af883f
MD5 866f34a01dc019f2ddb3e78d376b63ea
BLAKE2b-256 03bf0e3124a0921a38a772955ee392a40cf208cf2a31d74fc8ede8a6659f5c05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.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.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.4.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0cb34def46e7d7e43a7c589c7de6f78ec9512863af7e339cf678f2d7713a7f93
MD5 51c908528eddfb417121ba300c05917d
BLAKE2b-256 88e3f78c29767d0415e8a2765e692d98424b6e334965f6f48363960f63dd3490

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.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.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.4.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a48df2994daa0e6dc22e25e7ac327a7cc2eb73fe4f8779369d1eee622341356
MD5 d11c2693721fffd353b98050eaff7fb8
BLAKE2b-256 4db1478878642acff2d6702c1761f3273279b0cc56d4b1f4d9248b108c31e9c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.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.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.4.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 22ad71692fc297d250c6de0f853b60f3036a50edf2d89faf19a29d8d1cd8b8ef
MD5 a79b39bc03b3cb5708c68a29e42da48a
BLAKE2b-256 5212e0f8cfddf0e0b2ce09d5db7a51c7cd13de6e6d53c8fc2613b64db80c3fa5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.0-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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08970fc9552a1880897cec3058f21df3b1fef0540bdad34530ac2dffc65b908f
MD5 74410923220182e0e797e30fa5337b06
BLAKE2b-256 dfe4b76fb3d07a47248e083e2165bcf5667cad232a9acb9e8680a171f6ef4772

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