File: install-bazelisk.md

package info (click to toggle)
bazel-bootstrap 4.2.3%2Bds-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 85,704 kB
  • sloc: java: 721,717; sh: 55,859; cpp: 35,360; python: 12,139; xml: 295; objc: 269; makefile: 113; ansic: 106; ruby: 3
file content (23 lines) | stat: -rwxr-xr-x 835 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: documentation
title: Installing Bazel using Bazelisk
---

# Installing Bazel using Bazelisk

[Bazelisk](https://github.com/bazelbuild/bazelisk) is a launcher for Bazel which
automatically downloads and installs an 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/bazelisk`
* using [a binary release](https://github.com/bazelbuild/bazelisk/releases) for
  Linux, macOS, or Windows
* using Homebrew on macOS
* by compiling from source using Go: `go get github.com/bazelbuild/bazelisk`

For more details, see
[the official README](https://github.com/bazelbuild/bazelisk/blob/master/README.md).