The mongo is an executable installed as part of MongoDB. When run, this utility provides an interactive JavaScript command line style interface to the MongoDB database. You can use the shell to perform any and all actions on the MongoDB database including queries, adding, editing, and removing documents from collections. You can also perform higher level operations such as creating a database and collections.
Overview
Why use the mongo shell?
A fair question to ask is why use the mongo shell? After all, given that the wonderful graphical utility MongoDB Compass is provided free-of-charge, why bother with the shell? The answer lies in the very nature of Compass; it's graphical in nature, which means you are out of luck...