Computer >> Computer tutorials >  >> Programming >> MongoDB

How do I know which MongoDB version is installed using the Command Line?


First open the CMD and then reach the BIN directory of MongoDB. The screenshot to open CMD prompt is as follows.

How do I know which MongoDB version is installed using the Command Line?

Above we have reached the RUN dialog by pressing START and then typing RUN and ENTER.

Now, type CMD and press OK button to get the command line. The screenshot is as follows −

How do I know which MongoDB version is installed using the Command Line?

Reach the BIN directory of MongoDB. Following is how to reach the BIN −

How do I know which MongoDB version is installed using the Command Line?

Use the query mongo –version. The screenshot of the query is as follows −

How do I know which MongoDB version is installed using the Command Line?

Above displays that our current MongoDB version is v4.0.5.