1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
---
layout: documentation
title: Command-Line Reference
---
<h1>Command-Line Reference</h1>
<pre>
bazel [<startup options>] <command> [<args>]
</pre>
or
<pre>
bazel [<startup options>] <command> [<args>] -- [<target patterns>]
</pre>
See the <a href="guide.html#target-patterns">User's Guide</a> for the
target patterns syntax.
<h2>Option Syntax</h2>
<p>
Options can be passed to Bazel in different ways. Options that require a value
can be passed with either an equals sign or a space:
<pre>
--<option>=<value>
--<option> <value>
</pre>
Some options have a single character short form; in that case, the short form
has to be passed with a single dash and a space.
<pre>
-<short_form> <value>
</pre>
</p>
<p>
Boolean options can be enabled as follows:
<pre>
--<option>
--<option>=[true|yes|1]
</pre>
and disabled as follows:
<pre>
--no<option>
--<option>=[false|no|0]
</pre>
</p>
<p>
Tristate options are usually set to automatic by default, and can be
force-enabled as follows:
<pre>
--<option>=[true|yes|1]
</pre>
or force-disabled as follows:
<pre>
--no<option>
--<option>=[false|no|0]
</pre>
</p>
|