How do I use Bazel? To build or test a project with Bazel, you typically do the following: Set up Bazel. Download and install Bazel. Set up a project workspace, which is a directory where Bazel looks for build inputs and BUILD files, and where it stores build outputs. Write a BUILD file, which tells Bazel what to build and how to build it.