blob: 428ad08f5de09f4b7c889bd9550be63a17d3828d [file] [log] [blame] [view]
Googler1fbef392017-03-22 09:05:09 +00001---
2layout: documentation
3title: Installing Bazel on Windows
4---
5
ahumesky71c14412017-12-08 11:55:53 -08006# <a name="windows"></a>Installing Bazel on Windows
Googler1fbef392017-03-22 09:05:09 +00007
michelleirvine5370ceb2017-10-06 19:52:49 +02008Supported Windows platforms:
Googler1fbef392017-03-22 09:05:09 +00009
Laszlo Csomorc3916f92018-03-05 00:29:00 -080010* 64 bit Windows 7 or higher, or equivalent Windows Server versions.
Googler1fbef392017-03-22 09:05:09 +000011
Laszlo Csomorc3916f92018-03-05 00:29:00 -080012Check
13<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx">Microsoft's
14Operating System Version table</a> to see if your OS is supported.
Googler1fbef392017-03-22 09:05:09 +000015
Laszlo Csomorc3916f92018-03-05 00:29:00 -080016Before installing Bazel, make sure your system meets the system and software
17requirements. See the page about [using Bazel on Windows](windows.html).
Googler1fbef392017-03-22 09:05:09 +000018
michelleirvine5370ceb2017-10-06 19:52:49 +020019Install Bazel on Windows using one of the following methods:
Googler1fbef392017-03-22 09:05:09 +000020
michelleirvine5370ceb2017-10-06 19:52:49 +020021* [Download the binary (recommended)](#download-the-binary-recommended)
22* [Install using Chocolatey](#install-using-chocolatey)
23* [Compile Bazel from source](install-compile-source.html)
Googler1fbef392017-03-22 09:05:09 +000024
michelleirvine5370ceb2017-10-06 19:52:49 +020025## Download the binary (recommended)
Googler1fbef392017-03-22 09:05:09 +000026
michelleirvine5370ceb2017-10-06 19:52:49 +020027Go to Bazel's [GitHub releases page](https://github.com/bazelbuild/bazel/releases)
Laszlo Csomorc3916f92018-03-05 00:29:00 -080028and download the Windows binary.
29
30For convenience, move the binary to a directory that's on your `%PATH%`. This
31way you can run Bazel by typing `bazel` in any directory, without typing out the
32full path. That said, you may put the binary anywhere on your filesystem.
Googler1fbef392017-03-22 09:05:09 +000033
michelleirvine5370ceb2017-10-06 19:52:49 +020034After you download the binary, you'll need additional
35software and some setup in your environment to run Bazel. For details, see the
36[Windows requirements](windows.html).
Googler1fbef392017-03-22 09:05:09 +000037
michelleirvine5370ceb2017-10-06 19:52:49 +020038## Install using Chocolatey
Googler1fbef392017-03-22 09:05:09 +000039
michelleirvine5370ceb2017-10-06 19:52:49 +020040You can install the Bazel package using the [Chocolatey](https://chocolatey.org)
41package manager:
Googler1fbef392017-03-22 09:05:09 +000042
michelleirvine5370ceb2017-10-06 19:52:49 +020043```sh
44choco install bazel
45```
Googler1fbef392017-03-22 09:05:09 +000046
michelleirvine5370ceb2017-10-06 19:52:49 +020047This command will install the latest available version of Bazel and most of
Laszlo Csomorc3916f92018-03-05 00:29:00 -080048its dependencies, such as the MSYS2 shell. This will not install Visual C++
michelleirvine5370ceb2017-10-06 19:52:49 +020049though.
50
51See [Chocolatey installation and package maintenance
52guide](https://bazel.build/windows-chocolatey-maintenance.html) for more
53information about the Chocolatey package.