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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.12+ x86-64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 7d5b08000e6e398d46f05a50139031046348fba6d47909f01e468bb7600c19df
MD5 1a9d77ac70fce971b1b774a6f4824858
BLAKE2b-256 51daecb6346df1ffb0752fe213e25062f802c10df2948717f0d5f9816c2df914

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3958b880375f2241d0cc2b9882363bf54b1d4d7ca8ffc6eecc63ab92f23307f0
MD5 48df1593a72548dfaa21a41d09d74b27
BLAKE2b-256 b809d96acf18f0773b6355080a568ba48931faa9dbe91ab1abefc6f8c4df04a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d79a9cf191dd2c29e1b3a35453fa364b08a7aadd15aeb2c556a7661c6cf4d5ad
MD5 ecfa1b0d7e3a1a6e614c1a7fe8308434
BLAKE2b-256 2a649e0ce6119e091ef9211fa82b9593f564eeec8bdd86eff6a97fe6e2fcb20f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 6db7b81a198e3ba6a87496a554684912c13f9297ea8db8600a80f4f971709d37
MD5 021c872f6b68a3e7c4f4ab77d33bdb72
BLAKE2b-256 7ced9e4ebe400fc52e38dda6e6a45d9da9decd4535ab15e170b8d9b229a66730

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d1603aa37d8e4f5df63676bbfddc802fbc108a744ba28288ad25c997981c164
MD5 15c84e29b02f0bb663ccbc2bb982ba71
BLAKE2b-256 ce812f6ffa0d87c792364ca9958433fe088c8acc3d096ac9734040049c6ad506

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7a347a9ad3d2af16e5367e52b451fbc88a0b7b666850758e8f9a601554a8fb13
MD5 b36be6d11a7ad6095599bf03129ea9dc
BLAKE2b-256 33c7ecc443953840ac313856b2181f55eb8d34fa2c733cdd1edd0bcceee0938d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4206f4fa97df930c8176bfee4d3976a7385150ed14b317bd6bae7101ac8b66dd
MD5 228568adb8bda56b6fcbedf218d8de7c
BLAKE2b-256 3918c1d17d973f73f0aa7e2c45f852839ab909756e1bd9727d03babe400fcef0

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