title: How do I get the commands executed by Bazel
body: <p>I was wondering if there is a way to get Bazel to list, output, display, etc.,  all of the commands that can be executed from a command line that are run during a build after a clean. I do not care if the output is to the screen, in a file, etc. I will massage it into a usable form if necessary.</p>
  
  <p>I have captured the screen output during a run of Bazel which gives me an idea of what is being done, however it <strong>does not</strong> give me a command I can execute on the command line. The command would have to include all of the command options and not display variables.</p>
  
  <p>If this is not possible, since Bazel is open source, where in the code is/are the lines that represent the commands to be run so that I can modify Bazel to output the executable commands.</p>
  
  <p>I am aware of the query command within Bazel, and used it generate the dependency diagram. If this could be done as a query command it would be even better.</p>
  
  <p>TLDR;</p>
  
  <p>My goal is to build TensorFlow using Bazel on Windows. Yes I know of all of the problems and reasons NOT to do it and have successfully installed TensorFlow on Windows via a Virtual Machine or Docker. I did take a shot at building Bazel on Windows starting with Cygwin, but that started to get out of hand as I am use to installing with packages and Cygwin doesn't play nice with packages, so then I started trying to build Bazel by hand and that was turning into a quagmire. So I am now trying to just build TensorFlow by hand on Windows by duplicating what Bazel would do to build TensorFlow on Linux.</p>