Installation
Prebuilt binaries need no Rust toolchain. Releases include SLSA build provenance attestations and binaries for Linux (glibc) and macOS on x86_64 and aarch64, and Windows on x86_64.
To run Gleam tasks, install Gleam and the tools your target needs, such as Erlang/OTP or a JavaScript runtime.
Choose an installation method
Section titled “Choose an installation method”- Install on this computer: use the shell installer on Linux or macOS, or the PowerShell installer on Windows. If you use Homebrew, install from the tap.
- Keep a team or CI on one version: pin with mise, or pin the installer URL.
- Build with Rust: install from source.
Shell installer
Section titled “Shell installer”On Linux and macOS:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tylerbutler/trellis/releases/latest/download/trellis-gleam-installer.sh | shPowerShell installer
Section titled “PowerShell installer”On Windows:
powershell -ExecutionPolicy Bypass -c "irm https://github.com/tylerbutler/trellis/releases/latest/download/trellis-gleam-installer.ps1 | iex"Homebrew
Section titled “Homebrew”brew install tylerbutler/tap/trellisUse mise’s github backend
to install trellis and record its version in mise.toml. Commit that file to
share the pin with your team and CI:
mise use "github:tylerbutler/trellis@1.7.0"From source
Section titled “From source”The crate is named trellis-gleam on crates.io; the installed binary is trellis:
cargo install trellis-gleam# or straight from the repository:cargo install --git https://github.com/tylerbutler/trellisVerifying it
Section titled “Verifying it”Run these commands inside your Gleam repository. Trellis walks up to the first
gleam.toml with a [tools.trellis] table, or uses the git repository root
when no manifest has one. This excerpt uses the
example workspace:
$ trellis --versiontrellis 1.7.0
$ trellis doctorchecked: member globs resolve and every package has a parseable gleam.tomlchecked: path dependencies stay inside the workspace; graph is acyclic...ok: 4 package(s) (1 workspace, 0 git_only, 3 hex), 3 warning(s)The example’s warnings concern existing changelog history, which
trellis doctor --fix can import. For workspace settings, use the
configuration guide.
Pinning a version in CI
Section titled “Pinning a version in CI”The installer URLs above resolve latest. To pin a specific version, replace
latest/download with download/v<version>:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tylerbutler/trellis/releases/download/v1.7.0/trellis-gleam-installer.sh | shPrebuilt archives for every target are on the releases page.
After installation
Section titled “After installation”Shell completions
Section titled “Shell completions”The binary supplies completion candidates as you type, using its current flags and the package names, task names, and changelog kinds in your workspace.
Add one line to your shell’s startup file:
eval "$(trellis completions bash)"
# ~/.zshrc (after compinit)eval "$(trellis completions zsh)"
# ~/.config/fish/config.fishtrellis completions fish | source
# ~/.elvish/rc.elveval (trellis completions elvish | slurp)
# $PROFILE (PowerShell)trellis completions powershell | Out-String | Invoke-ExpressionEvaluate the snippet on startup. Saving its output to a completions directory can leave an incompatible script after a trellis upgrade.
Completing after -C uses the current directory, not the directory you passed.
--bump completes only the three bare levels, not the <pkg>=<level> form.
Man pages
Section titled “Man pages”trellis.1 and a page per subcommand ship inside the release archives under
man/. Neither the shell installer nor the Homebrew formula installs them
automatically, so point man at the extracted archive or install them yourself:
sudo mkdir -p /usr/local/share/man/man1sudo cp man/*.1 /usr/local/share/man/man1/man trellisman trellis-runEverything in those pages is also on the CLI reference page.