Every release deserves a héraut.
Héraut (heraut) is a Go CLI that orchestrates release management for git-based
projects. One command resolves the next version, generates the changelog and release
notes, creates the git tag, and publishes the release to GitHub and/or GitLab. It wraps
the tools you already use — git-cliff, gh, glab, cog, communique — and handles
the glue they can't: version resolution for prefixed-tag strategies, generator/platform
composition, and strict config validation.
The name is a French pun. Héraut means herald — the medieval messenger who announces
news — and it sounds like hero, which is what good release automation should feel like.
It supports four versioning strategies (semver, calver, semver-per-env,
calver-per-env), three content generators (git-cliff, communique, cocogitto),
and two platforms (github, gitlab).
Install
go install
go install github.com/adaouat/heraut/cmd/heraut@latest
Prebuilt binary
Download the raw binary for your platform from the
releases page. Assets are named
heraut_<version>_<os>_<arch> (no archive wrapper — see
ADR-0013), alongside a
heraut_<version>_checksums.txt for verification.
# example: macOS arm64 — replace <version> with the release tag
curl -L -o heraut "https://github.com/adaouat/heraut/releases/download/<version>/heraut_<version>_darwin_arm64"
chmod +x heraut
./heraut --version
Once installed, heraut self-update keeps it current.
Docker
docker run --rm ghcr.io/adaouat/heraut:latest --version
# run against the current repo
docker run --rm -v "$PWD":/repo -w /repo ghcr.io/adaouat/heraut:latest release --dry-run
Prerequisites
When running via binary or go install, heraut does not bundle the external CLIs it
orchestrates — install the ones your config uses and make sure they are on PATH.
The Docker image bundles all of them at pinned versions; no extra setup needed.
| Tool |
Needed for |
git |
always |
git-cliff |
generator: git-cliff |
cog (cocogitto) |
generator: cocogitto |
communique |
generator: communique |
gh |
platform: github |
glab |
platform: gitlab |
Run heraut check runtime to verify the tools and tokens for your config are available.
Quickstart
# 1. Generate a .heraut.yml interactively (or `heraut init --defaults` for an opinionated default)
heraut init
# 2. Validate the config offline — parse + semantic checks, no network
heraut check config
# 3. Preview the full pipeline without side effects
heraut release --dry-run
# 4. Cut the release: resolve version → changelog → commit → tag → publish
heraut release
Commands
| Command |
Description |
heraut release |
Resolve next version → changelog → commit → tag → publish → notes |
heraut changelog |
Generate CHANGELOG.md only (optionally --commit / --tag) |
heraut version next |
Print the next version without side effects |
heraut version current |
Print the latest released tag for the active strategy / env |
heraut version sprint bump |
Increment the CalVer sprint counter in .heraut.yml |
heraut check |
Preflight: config + runtime + cliff (config / runtime / cliff subcommands) |
heraut cliff <mode> |
Print the effective merged git-cliff TOML (changelog / release-notes) |
heraut init |
Interactive wizard to generate .heraut.yml |
heraut self-update |
Download, verify, and atomically replace the binary |
Global flags (on every command): --config, --dry-run, --verbose, --env,
--force, --version/-v, --help/-h. See
Spec 03 — Commands for the full reference.
Configuration
Configuration lives in .heraut.yml (or .config/heraut.yml). Add the schema header for
IDE autocomplete and inline validation in any editor with YAML Language Server support:
# yaml-language-server: $schema=https://raw.githubusercontent.com/adaouat/heraut/main/schema.json
version: "1"
versioning:
strategy: semver
prefix: "v"
initial_version: "0.1.0"
bump: auto
changelog:
generator: git-cliff
output: CHANGELOG.md
release:
notes:
generator: git-cliff
platforms:
- platform: github
repository: acme/widget
token_env: GH_TOKEN
| Block |
Purpose |
versioning |
Strategy and options (semver / calver / *-per-env) |
changelog |
Generator for CHANGELOG.md (committed during release) |
release.notes |
Generator for the release-page notes |
release.platforms |
Where to publish (github, gitlab, or both) |
environments |
Per-environment overrides for changelog / release |
This is the short version. See Spec 02 — Configuration
for every field, and Spec 04 — Versioning for how each
strategy computes the next version.
Self-update
heraut self-update # download + verify (SHA-256) + atomically replace
heraut self-update --check # print current vs latest; exit 1 if an update is available
After any command, heraut runs a non-blocking, once-per-day check against the GitHub
Releases API and prints a one-line hint if a newer version exists. Disable it with
HERAUT_NO_UPDATE_CHECK=1. On macOS, self-update removes the com.apple.quarantine
attribute so Gatekeeper does not block the new binary. See
ADR-0014.
Documentation
docs/specs/ — behavioural specification (the authority for users)
docs/adr/ — architecture decision records
License
MIT