alias bazel=bb and keep using Bazel the way you normally would.
The BuildBuddy CLI is written in Go, fully open source, and MIT licensed.
Installation
The easiest way to install the BuildBuddy CLI is by running this simple bash script, which works on both MacOS and Linux:What does this installation script do?
What does this installation script do?
If you’re not comfortable executing random bash scripts from the internet (we totally get it!), you can take a look at what this script is doing under the hood by visiting install.buildbuddy.io in your browser.It’s downloading the latest BuildBuddy CLI binary for your OS and architecture from our Github repo here and moving it to
/usr/local/bin/bb.You can perform those steps manually yourself if you’d like!Updating
You can update the CLI by re-running the installation script:Installing for a project
If you’re already using Bazelisk, you can easily install the BuildBuddy CLI for your entire project by running:buildbuddy-io/5.0.321 on a new line above your .bazelversion file like so:
.bazelversion
The version
5.0.321 of the BuildBuddy CLI will now automatically be used when you type bazel or bazelisk and continue to use the Bazel version specified on the second line of your .bazelversion file.Features
Networking
The BuildBuddy CLI was built to handle flaky network conditions without affecting your build. It does this by forwarding all remote cache & build event stream requests through a local proxy. This means that you’ll never have to sit around waiting for outputs or build events to upload, and your build won’t fail if you’re not connected to the internet.Plugins
The BuildBuddy CLI comes with a robust plugin system. Plugins are super simple to write, share, and install. You can find a list of plugins that you can install in our plugin library.Plugin Documentation
Learn how to write your own plugins
Authentication
The BuildBuddy CLI makes authentication to BuildBuddy a breeze. You can simply typebb login and follow the instructions. Once you’re logged in, all of your requests to BuildBuddy will be authenticated to your organization.