Bazelisk logo

Bazelisk Bazel

Use this command to install Bazelisk:
winget install --id=Bazel.Bazelisk -e

Bazelisk is a wrapper for Bazel written in Go. It automatically picks a good version of Bazel given your current working directory, downloads it from the official server (if required) and then transparently passes through all command-line arguments to the real Bazel binary. You can call it just like you would call Bazel.

Bazelisk is a wrapper for Bazel written in Go, designed to simplify the process of using Bazel by automatically selecting the appropriate version based on your current working directory. It streamlines Bazel usage by transparently handling command-line arguments and downloading the required Bazel version from the official server if necessary.

Key Features:

  • Automatic Version Selection: Bazelisk automatically determines the optimal Bazel version for your project, ensuring compatibility with your current directory's requirements.
  • Transparent CLI Integration: It seamlessly passes all command-line arguments to the actual Bazel binary, allowing you to use it just like you would use Bazel directly.
  • Seamless Bazel Handling: Bazelisk manages downloading and selecting the correct Bazel version, eliminating the need for manual version management.

Audience & Benefit: Ideal for developers and teams working on projects that require different Bazel versions across directories. By automating version selection and managing downloads, Bazelisk reduces errors related to mismatched Bazel versions and streamlines your workflow without additional setup or configuration.

Bazelisk can be installed via winget, making it easy to integrate into your development environment.

Versions
1.15.0
1.14.0