Project: /_project.yaml Book: /_book.yaml
Bazelisk{: .external} is the recommended way to install Bazel on Ubuntu, Windows, and macOS. It automatically downloads and installs the appropriate version of Bazel. Use Bazelisk if you need to switch between different versions of Bazel depending on the current working directory, or to always keep Bazel updated to the latest release.
You can install Bazelisk in multiple ways, including:
npm install -g @bazel/bazeliskbrew install bazeliskgo install github.com/bazelbuild/bazelisk@latest (needs Go 1.17 or later)For more details, see the official README{: .external}.