Configuration reference
Use this reference to look up a key or configure releases and changelogs. For workspace setup, package discovery, and task exclusions, start with the configuration guide.
Find a setting
Section titled “Find a setting”Workspace and tasks
Section titled “Workspace and tasks”| Key | Required | What it does |
|---|---|---|
members |
no | Literal directories and wildcard patterns relative to the workspace root. Entries containing *, ?, or [ use repository-aware wildcard discovery; only matching directories with a gleam.toml become members. When omitted, every non-gitignored gleam.toml in the repository (outside build/) marks a member. An explicitly empty list is an error. |
exclude.<task> |
no | Member-path globs omitted from that built-in or custom task. The exclusion still applies when a package is named explicitly. |
exclude.@release |
no | Packages omitted from changelog, versioning, tagging, publishing, and release CI, unless a publish.lifecycle.packages rule overrides it. Task names may not start with the reserved @ prefix. |
exclude.@members |
no | Directories removed from workspace membership. No command parses or uses them. Applies to auto-discovery and explicit members globs. |
tasks.<name> |
no | Custom tasks for trellis run. A task with a built-in’s name (build, test, …) overrides it. needs_deps = true downloads dependencies first. |
Manifest adapter
Section titled “Manifest adapter”| Key | Required | What it does |
|---|---|---|
adapter.manifest |
with the table | Path to the member manifest, relative to the member directory. Its presence marks a member, in place of a gleam.toml, and its extension picks the format: .toml, .json, .yaml, or .yml. See Manifest adapter. |
adapter.name |
no | Dot-separated field path to the member’s name inside that manifest. Default: name. |
adapter.version |
no | Dot-separated field path to the member’s version. This is the field version apply rewrites. Default: version. |
Package publishing
Section titled “Package publishing”| Key | Required | What it does |
|---|---|---|
publish.package_tags |
no | Version levels to tag per package: exact (v1.2.3), major (v1), minor (v1.2). Default: ["exact"]. Must not be empty. |
publish.package_tags_overrides |
no | Per-package overrides: a map of member-path glob to tag list. A member matched by globs resolving to different lists is an error; matches agreeing on the same list are fine. |
publish.exact_tag_format |
no | Template the exact level substitutes into; {name} and {version}. Default: {name}-v{version}. |
publish.primary_package |
no | Manifest package name whose highest published stable GitHub Release is Latest. No default. Must be a discovered, releasable package with unambiguous exact tags; doctor checks it. Applies to tag create --github-release and release bootstrap --github-release, including package-specific finalization and retries. See primary package releases. |
publish.series_tag_format |
no | Template every series level substitutes into; must contain {name} and {series}. Default: {name}-v{series}. Use the repository tag keys below for a repository-wide tag. |
publish.repository_tag_package |
with the other two | Anchor package whose manifest version drives one repository-wide moving tag. Must be releasable. |
publish.repository_tag_format |
with the other two | Repository tag template; must contain {series} and no {name}. |
publish.repository_tags |
with the other two | Which repository tags to maintain, from the same vocabulary minus exact. Required alongside repository_tag_package and repository_tag_format; declare all three or none. |
publish.path_dep_requirement |
no | How a workspace path dependency becomes a Hex requirement at publish time, from the dependency’s current version X.Y.Z: minor (default, >= X.Y.Z and < (X+1).0.0), patch (>= X.Y.Z and < X.(Y+1).0), or exact (== X.Y.Z). |
publish.bundle |
no | Map of exact releasable package names to direct non-Hex runtime dependency names, for example { lib_a = ["lib_b"] }. Empty by default. Includes transitive non-Hex runtime dependencies. Hex owners combine source without renaming modules or rewriting imports; Git-only owners retain repository paths and package identities. See source bundling. |
publish.retry |
no | Backoff for Hex rate limits: { attempts, initial_delay, multiplier }. Defaults: 5 attempts, 30s, multiplier 2. |
Lifecycle settings
Section titled “Lifecycle settings”| Key | Required | What it does |
|---|---|---|
publish.lifecycle.default |
no | Release lifecycle for a member matched by no packages glob and no legacy exclude.@release glob: workspace, git_only, or hex (default). Under an adapter the default is git_only and hex is an error. |
publish.lifecycle.packages |
no | Per-package lifecycle overrides: a map of member-path glob to lifecycle. Takes precedence over exclude.@release. A member matched by globs resolving to different lifecycles is an error; matches agreeing on the same lifecycle are fine. |
Changelogs
Section titled “Changelogs”| Key | Required | What it does |
|---|---|---|
changelog.dir |
no | Where fragments and batched version sections live. Default: .changes. |
changelog.kinds |
no | Change kinds and the version bump each implies. The largest bump among a package’s unreleased fragments wins. Replacing the list replaces it entirely. |
changelog.categories |
no | Labels that group entries above the kind headings. Categories do not affect version bumps. Empty by default. |
changelog.uncategorized_label |
no | Heading for entries naming no category, rendered last. Default: Other. Read only when categories is set. |
changelog.*_format |
no | Minijinja templates for the rendered changelog: header_format, version_format, category_format, kind_format, change_format. |
changelog.dependency_kind |
no | Kind used for the entries generated when a workspace dependency bumps. Must name one of kinds. |
changelog.dependency_body |
no | Minijinja template for one such entry’s body. Context: dependency, dependency_version, package. |
changelog.strictness |
no | How changelog check treats a changed releasable package with no unreleased fragment: error (default, fails the run), warn, or off. An invalid fragment fails at every setting. |
Doctor checks
Section titled “Doctor checks”| Key | Required | What it does |
|---|---|---|
doctor.shared_dependencies |
no | How doctor treats packages disagreeing on a shared external dependency: warn (default), error, or off. |
Release preparation settings
Section titled “Release preparation settings”| Key | Required | What it does |
|---|---|---|
release.resume |
no | Keep the proposed package versions from the pending same-repository release PR. Default: false. CLI: --resume / --no-resume. |
release.title_format |
no | Release commit message and title for new and updated PRs. Default: release: {summary}. Must contain {summary}, which expands to comma-separated package names and proposed versions, and must be a single line without control characters. All other text is literal. See release titles. |
release.auto_pre |
no | Continue the committed candidate label when no explicit or resumed mode applies. Always guards unchanged candidates; never implicitly promotes. Default: false. CLI: --auto-pre / --no-auto-pre. |
release.skip_unchanged |
no | Skip release preparation when relevant content and proposed versions are unchanged. Default: false. CLI: --skip-unchanged / --no-skip-unchanged. |
Release preparation
Section titled “Release preparation”These settings apply only to release pr, not to version plan or
version apply. All default to false and are read from the selected base’s
workspace configuration.
[tools.trellis.release]resume = trueauto_pre = trueskip_unchanged = trueExplicit CLI flags override each configured value. A flag and its --no-
form cannot be supplied together. --force bypasses content skipping, including
the automatic candidate guard, but not state or version validation.
See release preparation for mode
precedence, baseline recovery, and the persisted state contract.
Release lifecycle
Section titled “Release lifecycle”Use publish.lifecycle to choose whether each package gets versions, tags,
and Hex releases. exclude.@release selects workspace unless an explicit
package lifecycle rule overrides it.
| Lifecycle | Changelog/version | Git tags/releases | Hex publish |
|---|---|---|---|
workspace |
no | no | no |
git_only |
yes | yes | no |
hex (default) |
yes | yes | yes |
[tools.trellis.publish.lifecycle]default = "hex"packages = { "packages/experimental/**" = "workspace", "packages/providers/**" = "git_only" }default is the lifecycle for a member matched by no packages glob and no
legacy exclude.@release glob. packages is a map of member-path glob to
lifecycle; a member matched by globs resolving to different lifecycles is a
doctor error. Several matching globs are valid if they agree.
Resolution order, so a workspace can adopt publish.lifecycle incrementally
alongside an existing exclude.@release:
- Start from
publish.lifecycle.default. - Apply the legacy
exclude.@releasemapping toworkspace, when matched. - Apply an explicit
publish.lifecycle.packagesrule, when matched, overriding both previous settings.
--releasable (on list, ci matrix, and elsewhere) selects git_only
and hex, the packages that changelog, version, and tag commands use.
publish alone needs the finer distinction: it selects hex members only,
and the path-dependency rewrite it computes at publish time only ever
substitutes versions of hex members, so a hex package referencing a
git_only or workspace runtime path dependency needs explicit
publish.bundle configuration
or fails instead of publishing something unresolvable.
A dependency must be at least as capable as its dependent. hex may
depend only on hex; git_only may depend on git_only or hex; workspace
may depend on anything. Explicit publish.bundle configuration also lets a
hex package include non-Hex source, or a git_only package include a
workspace dependency in its Git distribution without releasing it separately.
Git-only bundles retain repository paths; your release workflow must include
those paths in its artifact. doctor’s
release_boundary check enforces these rules for runtime ([dependencies])
path deps only. A dev-only path dep never ships in any distribution, so it is
exempt regardless of lifecycle.
package_tags lists the tags a release maintains for each package, one entry
per tag. An entry names how much of the version the tag keeps:
| Level | 0.10.3 |
1.2.3 |
Lifecycle |
|---|---|---|---|
exact (default) |
lat_cli-v0.10.3 |
lat_cli-v1.2.3 |
immutable: written once |
major |
lat_cli-v0 |
lat_cli-v1 |
moving: updated at each release in the series |
minor |
lat_cli-v0.10 |
lat_cli-v1.2 |
moving |
The moving ones are what let a consumer track lat_cli-v0.10 once instead of
chasing 0.10.1, 0.10.2, 0.10.3. exact substitutes into
exact_tag_format; series levels substitute into series_tag_format.
Prereleases create exact tags only when package_tags includes exact,
and do not move series tags.
package_tags sets the workspace default and package_tags_overrides sets it
per package, as globs matched against member paths:
[tools.trellis.publish]package_tags = ["exact"] # workspace defaultpackage_tags_overrides = { "packages/lat_cli" = ["exact", "major", "minor"] }Releasing lat_cli twice then leaves the exact tags where they were and moves
the series tags onto the newest release:
$ trellis tag create --push # releasing 0.4.2tagged lat_cli-v0.4.2pushed lat_cli-v0.4.2tagged lat_cli-v0tagged lat_cli-v0.4
$ trellis tag create --push # releasing 0.4.3tagged lat_cli-v0.4.3pushed lat_cli-v0.4.3moved lat_cli-v0moved lat_cli-v0.4force-pushed lat_cli-v0.4A series tag moves only when its own package releases. A commit that does not change the package’s version, such as another package’s release or a docs change, leaves its tags alone.
Keep {name} in series_tag_format; omitting it is a configuration error.
See Repository tags to configure one shared series tag.
Trellis force-pushes series tags when their package version changes. Moving tags do not get GitHub Releases. See Publishing for how the two lifecycles differ.
Repository tags
Section titled “Repository tags”For a repository consumed through Gleam 1.18 git path dependencies, configure one first-class repository tag rather than overloading the package format:
[tools.trellis.publish]repository_tag_package = "vestibule"repository_tag_format = "v{series}"# Required alongside the other two: the repository tag's levels are stated,# not inferred from package_tags.repository_tags = ["major", "minor"]The anchor package determines both the series and whether the tag moves.
Trellis compares the anchor’s manifest version at HEAD with its manifest
version at the existing repository tag. Changes to other packages do not move
the tag, and package tags do not affect that decision. A
series transition creates the new tag while preserving the old one;
prereleases create no repository tag.
[dependencies]vestibule = { git = "https://github.com/example/monorepo.git", ref = "v0.4", path = "packages/vestibule" }Repository tags are mutable repository metadata. They are force-pushed,
never receive GitHub Releases, and never resolve through publish --tag or
ci tag-package.
A {name}-less series_tag_format is invalid. Restore {name} in the
package tag format and declare the repository tag explicitly:
[tools.trellis.publish]series_tag_format = "v{series}"series_tag_format = "{name}-v{series}"repository_tag_package = "vestibule"repository_tag_format = "v{series}"repository_tags = ["minor"]Repository tags do not resolve through ci tag-package or publish --tag.
If your CI used a shared tag to select a package, use a package tag containing
{name} for that selection. Use repository tags for git path-dependency consumers.
Changelog configuration
Section titled “Changelog configuration”Configure change kinds and MiniJinja templates under [tools.trellis.changelog].
Template variables include name, version, date, tag, series,
category, kind, and body. Entry templates also receive optional
commit and issues source context:
[tools.trellis.changelog]header_format = "# {{ name }} changelog" # defaultversion_format = "## v{{ version }} - {{ date }}" # defaultkind_format = "### {{ kind }}" # defaultchange_format = "- {{ body }}" # default
# The default kinds, in full. Setting `kinds` replaces the whole list, so# copy this before trimming it. Fragments using a removed kind become invalid.kinds = [ { label = "Initial Release", bump = "major" }, { label = "Breaking", bump = "major" }, { label = "Removed", bump = "major" }, { label = "Added", bump = "minor" }, { label = "Changed", bump = "minor" }, { label = "Deprecated", bump = "minor" }, { label = "Fixed", bump = "patch" }, { label = "Performance", bump = "patch" }, { label = "Security", bump = "patch" }, { label = "Dependencies", bump = "patch" },]
# When a package bumps, its workspace dependents bump too and get a generated# entry saying why. Those entries are ordinary entries of one configured kind.dependency_kind = "Dependencies" # defaultdependency_body = "Updated {{ dependency }} to {{ dependency_version }}" # defaultThe default change_format is exactly - {{ body }}: one Markdown bullet
with the fragment body. To extend the default, keep that text and append your
extra content. For example, this adds a link only when a source commit exists:
[tools.trellis.changelog]change_format = '- {{ body }}{% if commit %} ([commit](https://github.com/example/project/commit/{{ commit }})){% endif %}'Replace the example repository URL with yours. With no source commit, the entry still renders exactly as the default.
change_format receives body, kind, category, name, version,
commit, and issues. commit is the full object ID of the commit that added
the fragment, or null. issues is an ordered array of objects with number,
nullable owner, nullable repo, and nullable kind (issue,
pull_request, or null); it is empty when unavailable.
References come only from that commit’s subject. Templates construct their own URLs, and the default entry format does not show links. Missing or ambiguous history does not block a release. See source links for extraction rules, prerelease persistence, and a complete template.
dependency_kind must name one of kinds; that kind’s bump is what a package
bumps by when a dependency bump is the only reason it is being released. If
you replace the default kinds list, include a kind for it or point
dependency_kind at one of yours. Trellis refuses to load otherwise rather
than drop the entries silently.
Categories
Section titled “Categories”Categories identify the part of a package that changed, such as a CLI subcommand. They group entries above kind headings without affecting version bumps:
[tools.trellis.changelog]categories = ["build", "publish", "doctor"]category_format = "### {{ category }}" # defaultuncategorized_label = "Other" # default## v1.3.0 - 2026-07-11
### build
#### Added
- A `--watch` flag
### publish
#### Fixed
- Retry on a 429 from Hex
### Other
#### Dependencies
- Updated lat_core to 1.3.0A fragment opts in by naming one:
package = "lat_cli"kind = "Added"category = "build"body = "A `--watch` flag"The details worth knowing:
- Categories are opt-in and off by default. With none configured, a version section is a flat list of kind headings.
- A category must be one of
categories, exactly as a kind must be one ofkinds. An unknown one is an invalid fragment:doctorreports it andversionrefuses. - The category stays optional on each fragment. Entries without a category,
including generated dependency entries, render last under
uncategorized_label. - Kind headings drop to
####while the axis is on, since categories now occupy###. Settingkind_formatyourself overrides that. Keep both below##, which the release notes extractor reads as the start of a version section. - Empty categories are skipped, so a release touching one area shows one heading.
Each package’s CHANGELOG.md is a generated file: the source of truth is the
version sections stored under .changes/<package>/, and version apply
reassembles the changelog from them, newest first. A package that already had
a changelog before adopting trellis keeps it. See
adopting an existing changelog.
Shared dependency agreement
Section titled “Shared dependency agreement”doctor reports different requirements for a shared external dependency,
such as lat_core requiring gleam_stdlib >= 0.44.0 while
lat_cli requires >= 0.60.0:
$ trellis doctorwarning: packages disagree on `gleam_stdlib`: `>= 0.44.0` (lat_core) vs`>= 0.60.0` (lat_cli). Requirements are compared as written, so whitespacecountsRequirements are compared as written, never parsed as ranges, so >= 1.0
and >=1.0 read as divergent. Path dependencies are out of scope, since they
specify no version requirement; the lockfile check covers their locked versions.
Divergence is sometimes intended, so this warns rather than failing by default:
[tools.trellis.doctor]shared_dependencies = "error" # warn (default), error, or offThere is no doctor --fix for it: which requirement to unify on is a judgment
call.
Removed and unrecognized keys
Section titled “Removed and unrecognized keys”Every key above is snake_case, matching gleam.toml’s own settings and Gleam
itself. Through v0.7.0 they were kebab-case. Those spellings are now errors
that name the replacement:
$ trellis doctorerror: in gleam.toml: `publish.series-tag-format` was removed; use`publish.series_tag_format`A key that is not recognized in any spelling is also a warning, since it may belong to a newer trellis than the one CI has pinned:
$ trellis doctorwarning: [tools.trellis] key `publish.tag_frmat` is not recognized and is beingignored; it may belong to a newer trellisYou choose the keys in exclude, tasks, publish.package_tags_overrides,
and publish.lifecycle.packages. Hyphens in those keys do not trigger
unknown-key warnings.
After changing a setting, verify the workspace with
trellis doctor.