Bazel Command Line Interface

The `bazel` command line tool is the primary user-facing surface of Bazel. It exposes commands such as `build`, `test`, `run`, `query`, `cquery`, `aquery`, `mod`, `fetch`, `info`, `coverage`, and `clean`, plus the BEP/BES streaming protocols for build event publishing. Bazelisk is the recommended launcher that pins the Bazel version per project via .bazelversion.

Bazel Command Line Interface is one of 5 APIs that Bazel publishes on the APIs.io network.

Tagged areas include CLI, Commands, and Tooling. The published artifact set on APIs.io includes API documentation.

API entry from apis.yml

apis.yml Raw ↑
aid: bazel-build:bazel-cli
name: Bazel Command Line Interface
description: The `bazel` command line tool is the primary user-facing surface of Bazel. It exposes commands
  such as `build`, `test`, `run`, `query`, `cquery`, `aquery`, `mod`, `fetch`, `info`, `coverage`, and
  `clean`, plus the BEP/BES streaming protocols for build event publishing. Bazelisk is the recommended
  launcher that pins the Bazel version per project via .bazelversion.
humanURL: https://bazel.build/reference/command-line-reference
tags:
- CLI
- Commands
- Tooling
properties:
- type: Documentation
  url: https://bazel.build/reference/command-line-reference
- type: Documentation
  url: https://bazel.build/run/build
- type: Documentation
  url: https://bazel.build/query/language
- type: Tool
  url: https://github.com/bazelbuild/bazel
- type: Tool
  url: https://github.com/bazelbuild/bazelisk