Install Trunk
bash
bash (no prompts)
brew
npm
pnpm
yarn
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
trunk
without 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:
~/.cache/trunk
: cached versions of the trunk cli, linters, formatters, etc.
To cleanly uninstall:
trunk deinit
You can directly download the trunk binary. **We don't recommend this mode of operation because your ability to version the tool through
trunk.yaml
will not function when launching trunk
directly from a downloaded binary. Regardless you can bypass the launcher support by downloading the prebuilt binaries here:variable | options |
---|---|
version | the semver of the binary you want to download |
platform | 'darwin', 'linux' |
# for example https://trunk.io/releases/1.0.0/trunk-1.0.0-linux-x86_64.tar.gz
https://trunk.io/releases/${version}/trunk-${version}-${platform}-x86_64.tar.gz
As well as the other ways to use Trunk:
Last modified 1mo ago