BAZEL(1)

πŸ’– NAME πŸ’–

okay so bestie, meet bazel and bazel-4 β€” the tool that automates software builds and tests ✨ it's giving "your entire build system but make it a whole vibe" and honestly? iconic.

This is the General Commands Manual version of the page, so you know it's the real deal 🫢


🌸 SYNOPSIS 🌸

bazel <command> <options> ...

that's it. that's the whole shape of it. a command, some options, and a dream πŸ’…


✨ DESCRIPTION ✨

[bazel release 4.1.0] β€” yes bestie, this is that era of bazel. note it, love it, respect it.

πŸ‘‘ Available commands:

  • analyze-profile β€” Analyzes build profile data. basically it looks at your build's receipts and tells you the tea πŸ“Š
  • aquery β€” Analyzes the given targets and queries the action graph. like query but it's looking at actions, not just dependencies. main character behavior fr.
  • build β€” Builds the specified targets. the whole point. the moment. the slay πŸ”₯
  • canonicalize-flags β€” Canonicalizes a list of bazel options. it takes your flags and tidies them into their one true form ✨
  • clean β€” Removes output files and optionally stops the server. digital declutter era 🧹
  • coverage β€” Generates code coverage report for specified test targets. so you can see exactly which lines got exercised and which ones were just standing there πŸ’€
  • cquery β€” Loads, analyzes, and queries the specified targets w/ configurations. the "w/" is literally in the original and we are keeping it, no notes πŸŽ€
  • dump β€” Dumps the internal state of the bazel server process. yeah. it's just gonna show you everything going on in there. no filter, no cap πŸ™ˆ
  • fetch β€” Fetches external repositories that are prerequisites to the targets. it goes and grabs the stuff your stuff needs before your stuff can even start.
  • help β€” Prints help for commands, or the index. your bestie when you're lost 🫢
  • info β€” Displays runtime info about the bazel server. little peek behind the curtain πŸ‘€
  • license β€” Prints the license of this software. legal girlies stay winning.
  • mobile-install β€” Installs targets to mobile devices. phones! devices! mobile! πŸ“±
  • print_action β€” Prints the command line args for compiling a file. so you can see exactly what was whispered to the compiler.
  • query β€” Executes a dependency graph query. dependency graph? queried. periodt.
  • run β€” Runs the specified target. build it, then immediately go. no waiting, no thinking, just vibes πŸƒβ€β™€οΈ
  • shutdown β€” Stops the bazel server. bye bestie πŸ‘‹
  • sync β€” Syncs all repositories specified in the workspace file. keeps everything in alignment, very much a vibe check for your repos.
  • test β€” Builds and runs the specified test targets. the "does it actually work" step, and honestly the most important one 🌈
  • version β€” Prints version information for bazel. know your era ⭐

πŸ¦‹ Getting more help:

  • bazel help <command>

Prints help and options for <command>. go ask it directly, it will answer πŸ’–

  • bazel help startup_options

Options for the JVM hosting bazel. yes, there's a whole JVM in there, she's doing her best 🧚

  • bazel help target-syntax

Explains the syntax for specifying targets. read this one, bestie, it's the iykyk of bazel πŸŽ€

  • bazel help info-keys

Displays a list of keys used by the info command. so you know what you're allowed to ask about πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

The full documentation for bazel is maintained as a Texinfo manual. If the info and bazel programs are properly installed at your site, the command

info bazel

should give you access to the complete manual. no cap, that's the whole path to the big book πŸ“–


and that's a wrap on the BAZEL(1) page from the General Commands Manual, dated January 2021 β€” go build something cute, bestie 🫢✨