Bazelisk is a lightweight launcher developed in Go that simplifies installing, selecting, and managing versions of the Bazel build system. It automatically determines the appropriate Bazel version from project configuration files or environment variables. Required binaries are downloaded and cached locally for subsequent execution. Developers can pin specific versions through a .bazelversion file to maintain consistent build environments across development teams. Configurable release channels support stable versions, release candidates, and rolling releases. Custom download URLs and authentication settings accommodate private distribution infrastructure. Migration tools help identify incompatible changes between Bazel releases. Bazelisk supports Windows, macOS, and Linux.
Features
- Automatic Bazel version selection based on project configuration files and environment variables
- On-demand Bazel binary downloading with persistent local caching for subsequent build operations
- Project-specific version pinning for consistent development and continuous integration environments
- Flexible release selection supporting stable versions, release candidates, and rolling releases
- Custom binary download sources with authentication settings and optional SHA-256 integrity verification
- Integrated Bazel migration assistance with incompatible flag testing and configurable wrapper scripts