Run MongoDB Shell Using mongos Command



In order to launch the MongoDB shell, you need to use mongo command. Following is the syntax −

>mongo

First reach the MongoDB bin directory from command prompt as in the below screenshot −


Here is the command to launch the mongo shell as in the below screenshot −


This will produce the following output −


Updated on: 2020-03-31T08:26:14+05:30

769 Views

Kickstart Your Career

Get certified by completing the course

Get Started