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. likequerybut 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 π«Άβ¨
π¦ where this page comes from
- debian bookworm: bazel-bootstrap 4.2.3+ds-9 Β· Apache-2.0
- debian trixie: bazel-bootstrap 4.2.3+ds-11 Β· Apache-2.0
- ubuntu noble: bazel-bootstrap 4.2.3+ds-9ubuntu2 Β· Apache-2.0
- ubuntu questing: bazel-bootstrap 4.2.3+ds-11build1
- ubuntu resolute: bazel-bootstrap 4.2.3+ds-13 Β· Apache-2.0
- ubuntu stonking: bazel-bootstrap 7.7.1+ds-8ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms