How do I check Bazel version?

Evan Pu picture Evan Pu · Feb 9, 2016 · Viewed 25.9k times · Source

I am trying to find out which version of Bazel I currently have on my computer to install TensorFlow from source (it requires version 0.1.4)

evan@evan-box:~/Apps/tensorflow$ bazel --version
Unknown Bazel startup option: '--version'.
  For more info, run 'blaze help startup_options'.
evan@evan-box:~/Apps/tensorflow$ bazel version
Build label: head (@125b349)
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/bazel-main_deploy.jar
Build time: Fri Nov 13 01:23:30 2015 (1447377810)
Build timestamp: 1447377810
Build timestamp as int: 1447377810

So where is the version actually?

Answer

Guy Coder picture Guy Coder · Feb 9, 2016

See Bazel users manual

From the command line:

$ bazel version 
Build label: 0.1.1