Bazel Operations: Difference between revisions
Jump to navigation
Jump to search
(→build) |
|||
Line 28: | Line 28: | ||
==<tt>version</tt>== | ==<tt>version</tt>== | ||
= | =Scenarios= | ||
==Clean Cache== | |||
<syntaxhighlight lang='bash'> | |||
bazel run @cached_local_xcode//:clear_cache; bazel clean --expunge; bazel shutdown; go clean -cache | |||
</syntaxhighlight> |
Revision as of 17:50, 31 October 2023
External
- Command Line Reference https://bazel.build/reference/command-line-reference
Internal
Commands
build
bazel build //...
clean
fetch
info
bazel info
run
Runs the specified target. It inherits all options form build
.
bazel run --script_path=/Users/ovidiu/bin/something //a/something
Runs the specified target.
--script-path
Write a shell script that invokes the target. In this way, the target is not run from bazel - the bazel lock is released and the executable is connected to the terminal's stdin.
version
Scenarios
Clean Cache
bazel run @cached_local_xcode//:clear_cache; bazel clean --expunge; bazel shutdown; go clean -cache