Comment on page
The below commands install the Trunk Launcher, a bash script that downloads the appropriate Trunk CLI version and runs it. The launcher invisibly runs the Trunk CLI version specified in a project's
.trunk/trunk.yamlfile. The actual Trunk CLI is a single binary that is cached locally in
~/.cache/trunkand is updated automatically.
Run one of the following commands to install the Trunk Launcher, or add it as a dev dependency to your project if you use
yarn. You can also commit the Trunk launcher directly into your repo (see below).
bash (no prompts)
curl https://get.trunk.io -fsSL | bash
curl https://get.trunk.io -fsSL | bash -s -- -y
brew install trunk-io
npm install -D @trunkio/launcher
pnpm add -D @trunkio/launcher
yarn add -D @trunkio/launcher
To allow your teammates to use
trunkwithout installing anything, the launcher can be committed directly into your repo:
curl -LO https://trunk.io/releases/trunk
chmod +x ./trunk
git commit ./trunk -m "Commit Trunk to our repo"
This makes it much easier for you to share Trunk with your colleagues!
Trunk has a very minimal installation, and therefore, there's not much to uninstall. The two system paths we use are:
You can delete those two paths to uninstall.
To cleanly remove trunk from a particular repo, run:
You can directly download the trunk binary. **We don't recommend this mode of operation because your ability to version the tool through
trunk.yamlwill not function when launching
trunkdirectly from a downloaded binary. Regardless you can bypass the launcher support by downloading the prebuilt binaries here:
# for example https://trunk.io/releases/1.0.0/trunk-1.0.0-linux-x86_64.tar.gz
Last modified 8d ago