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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.12+ x86-64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: release_tag-0.3.8-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.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9384e70a972d892e44c979a7affca1fd372b623f05f539a1d621c6fafa0c4692
MD5 d248d15bb3cf103ff385b7a932fd5c6e
BLAKE2b-256 1cdee1f6d0d911c6e3684f2ac610f7bccf0e1eaf43bca2f66549a59f5a614225

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.8-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.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d00e8afefc644dfaf4f1640023788f62b976122410d30229f9e40569b704361c
MD5 31aafce43ab9d1467aca49beebf9060a
BLAKE2b-256 0be91a332759ebdfb16d094138c573f2ea59dd0dc7e77072380769b0226917e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.8-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.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1e021734b7364a8854cfddbd5b047463ff16099e58750a921206270ad2260aa2
MD5 a7ce98231c6455b5961e8d560b3358a7
BLAKE2b-256 7c744f35497640a73d739078c8562f30fe006e0a6cb04229fa82bda49830861f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.8-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.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 abf893216fa3fbd6d2dadef76466507bcd8beabd1a701707ffc6b97ea753d122
MD5 48c0ba86cd2573cd6ad8d64784b50714
BLAKE2b-256 175f653adaafc8fb4681442a23711f683c6511ca1a916b4f5b09ef56134010ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.8-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.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb8d4dc1713ce3f9040f123540911c68c4db40590b110b8d130da1390507ee70
MD5 b7b5fd74c8345b8cbbe4facbf5753c9e
BLAKE2b-256 4fafed8eb70a728625daea545d565fc027f8c4671b71e9d340dbdd23aea0f9c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.8-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.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f76f57ce579ba02b827cb08e1b5734af2008e44316d6d03a9a5f81ad59bdc7b8
MD5 ef8844538cbe6797b1ea782b071a4c79
BLAKE2b-256 ffbdb4ca064c3477d7369dfbdf6c16cff67688c8a2cca85bbd84d52b6dc6ece0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 41bdd6881873ee82b7648462c24e421c5ba71e8e76821d3fc8d78c4e9cb25934
MD5 5339d313c20dc632e7649bf6760a456c
BLAKE2b-256 1581a004efb724562ac4f5ce0935948c54ba92db7946d859ff32e9cbb34f6b3b

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