# Bazel Command Line Interface

**Canonical:** https://apis.io/apis/bazel-build/bazel-cli/  
**Provider:** Bazel — https://apis.io/providers/bazel-build/  
**Documentation:** https://bazel.build/reference/command-line-reference

Bazel Command Line Interface is one of 6 APIs that [Bazel](https://apis.io/providers/bazel-build/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include CLI, Commands, and Tooling. The published artifact set on APIs.io includes API documentation.

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.

## Machine-readable artifacts (6)

- **Documentation** — https://bazel.build/reference/command-line-reference
- **Documentation** — https://bazel.build/run/build
- **Documentation** — https://bazel.build/query/language
- **Tools** — https://github.com/bazelbuild/bazel
- **Tools** — https://github.com/bazelbuild/bazelisk
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/bazel-build/refs/heads/main/apis.yml

## Other Bazel APIs (5)

- [Bazel Starlark Build API](https://apis.io/apis/bazel-build/bazel-starlark-api/)
- [Bazel Remote Execution API](https://apis.io/apis/bazel-build/bazel-remote-execution-api/)
- [Bazel Build Event Protocol](https://apis.io/apis/bazel-build/bazel-build-event-protocol/)
- [Bazel Modules API](https://apis.io/apis/bazel-build/bazel-build-modules-api/)
- [Bazel Registry API](https://apis.io/apis/bazel-build/bazel-build-registry-api/)

## Tags

CLI, Commands, Tooling

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/bazel-build/bazel-cli/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/bazel-build/.
