All apps/Bazel

Bazel

bazel

Bazel is an open-source build and test tool similar to Make, Maven, and Gradle.

Runs as bazel, bazelisk|macOS, Linux, Windows|bazel.build

Command form

ai-draft · 4 tasks · 8 fields

Startup options that go before the command. Use the subcommand tabs to build, test or run targets; query, clean and other commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui bazel
Bazel startup optionsExample values, fixed in this page — nothing here reaches a terminal
Basic
Batch mode
--batch
TasksEach one presets the form for one job
Batch mode
batch
ParametersOnly these flags are editable in the form
Batch mode
Run as a client process without a server.
boolean
--batch
User bazelrc
path
--bazelrc
Ignore all rc files
boolean
--ignore_all_rc_files
Output base
Where all build output is written.
path
--output_base
Max idle seconds
Seconds the server idles before shutting down.
integer
--max_idle_secs

bazel build

Build targets

Build the specified targets. Per-command flags are not in the completion data; add them by hand.

Build targetsExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets*
//...string
TasksEach one presets the form for one job
All targets
targets
ParametersOnly these flags are editable in the form
Targets
Bazel label, for example //app:server or //...
string · positional 0 · repeatable
//...

bazel test

Run tests

Build and run the specified test targets. Per-command flags are not in the completion data; add them by hand.

Run testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets*
//...string
TasksEach one presets the form for one job
All targets
targets
ParametersOnly these flags are editable in the form
Targets
Bazel label, for example //app:server or //...
string · positional 0 · repeatable
//...

bazel run

Run a target

Run the specified target. Per-command flags are not in the completion data; add them by hand.

Run a targetExample values, fixed in this page — nothing here reaches a terminal
Basic
Target*
//...string
TasksEach one presets the form for one job
All targets
targets
ParametersOnly these flags are editable in the form
Target
Bazel label, for example //app:server or //...
string · positional 0
//...
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed bazel against its version. A form that does not match your version is not offered.