title: How do I know which MongoDB version is installed by using the Command Line?
body: <p>Without changing directory to \MongoDB\bin\, when I call:</p>
  
  <pre><code>mongod -v
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>'mongod' is not recognized as an internal or external command, operable
  program or batch file.
  </code></pre>
  
  <p>When I call the same command from \bin\ it launches the server just like I'm calling:</p>
  
  <pre><code>mongod
  </code></pre>
  
  <p>It is the same case with 'mongo' and 'mongos'.</p>
  
  <p>I added the \bin\ path to the environment variables thinking it will help but it didn't.</p>
  
  <p>To clarify with an example, to get the version of Ruby, I can call:</p>
  
  <pre><code>ruby -v
  </code></pre>
  
  <p>Why can't I do the same with MongoDB?</p>