Get Started

What is Trunk?

Trunk is a developer experience (DevEx) toolkit that enables you to ship code quickly while maintaining the guardrails necessary for a large team. Use Trunk for checking, testing, merging, and monitoring your code.

Check out:

  • Trunk Merge: a merge queue to make merging code in GitHub safer and easier
  • Trunk Check: an extendable superlinter with a builtin language server and preexisting issue detection
  • Trunk Actions: workflow automation for software engineers

Use it via:

Trunk Check and Trunk Actions can be used entirely locally without depending on hosted services or even having a Trunk account, and Trunk is entirely free for use in public repos and teams of up to 10 engineers. Additionally, Trunk uses soft limits for billing for any size org: feel free to play around, find what works best for you, and we can start you on a paid plan when you're ready to go.

Follow the steps below to get started with Trunk:

Step 1: Install Trunk

To use trunk locally, run:

curl https://get.trunk.io -fsSL | bash

For other installation options (npm, brew, direct download, etc) and details on exactly what we install or how to uninstall, see the Install Trunk doc.

Step 2: Initialize Trunk in a git repo

From the root of a git repo, run:

trunk init

This will bring you into a flow to start getting results from Trunk Check. For more details, see here.

Step 3: Sign up for a Trunk account (optional)

Sign up for a Trunk account, then run:

trunk login

To use Trunk Merge and certain other Trunk features, you'll need an account on trunk.io, but Trunk Check and Trunk Actions can be used entirely locally without depending on hosted services or having a Trunk account.

Help & Feedback

Join the Trunk Slack Community for help and to give feedback (more info).