| title: Command-Line Reference |
| <h1>Command-Line Reference</h1> |
| bazel [<startup options>] <command> [<args>] |
| bazel [<startup options>] <command> [<args>] -- [<target patterns>] |
| See the <a href="guide.html#target-patterns">User's Guide</a> for the |
| 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: |
| --<option>=<value> |
| --<option> <value> |
| 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. |
| -<short_form> <value> |
| Boolean options can be enabled as follows: |
| --<option>=[true|yes|1] |
| --<option>=[false|no|0] |
| Tristate options are usually set to automatic by default, and can be |
| force-enabled as follows: |
| --<option>=[true|yes|1] |
| or force-disabled as follows: |
| --<option>=[false|no|0] |