BuildBuddy CLI

Skip to main content

BuildBuddy CLI

Take BuildBuddy to the command line — built on top of Bazelisk with support for plugins, authentication, flaky network conditions, and so much more.
curl -fsSL https://install.buildbuddy.io | bash
View docs
siggi@lunchbox: ~/tensorflow
siggi@lunchbox: ~/tensorflow$ bb build server
INFO: Streaming build results to: https://app.buildbuddy.io/invocation/2124a2c3-5240-4bdd-8aa1-5303b86d2b11
INFO: Analyzed target //server:server (1 packages loaded, 20 targets configured).
INFO: Found 1 target...

Command line compatible with Bazel

Just like with Bazelisk, you can simply alias bazel=bb and keep using bazel the way you normally would. It's also written in go, fully open source, and MIT licensed.
siggi@lunchbox: ~/tensorflow
siggi@lunchbox: ~/tensorflow$ alias bazel=bb
siggi@lunchbox: ~/tensorflow$

Slow network?
No network?
No problem!

BuildBuddy CLI routes your BuildBuddy requests through a local proxy, so you never have to wait for slow uploads and flaky network conditions will never fail or slow down your builds.
siggi@lunchbox: ~/tensorflow
siggi@lunchbox: ~/tensorflow$ sudo ifconfig en1 down
siggi@lunchbox: ~/tensorflow$

Powerful Plugins

Dead simple to write, even easier to install, use and share.
bb install buildbuddy-io/plugins@v0.0.14:open-invocation
See plugin libraryView docs
siggi@lunchbox: ~/tensorflow
siggi@lunchbox: ~/tensorflow$ bb install buildbuddy-io/plugins@v0.0.14:open-invocation
siggi@lunchbox: ~/tensorflow$

Super Simple Auth

No more fiddling with certs or headers. Login to BuildBuddy with a single command that authenticates all of your remote requests.
siggi@lunchbox: ~/tensorflow
siggi@lunchbox: ~/tensorflow$ bb login
Enter your api key from https://app.buildbuddy.io/settings/org/api-keys

Bring your whole project onboard

If you're already using Bazelisk, just add one line to your .bazelversion file and you're off to the races!
echo "$(echo "buildbuddy-io/5.0.321"; cat .bazelversion)" > .bazelversion
siggi@lunchbox: ~/tensorflow
siggi@lunchbox: ~/tensorflow$ echo "$(echo "buildbuddy-io/5.0.321"; cat .bazelversion)" > .bazelversion
siggi@lunchbox: ~/tensorflow$

Build better today.

View the installation docs