This article is part of Robert Sheldon’s continuing series on Mongo DB. To see all of the items in the series, click here.
Throughout this series, I’ve provided a number of examples of how to run commands in MongoDB Shell (mongosh). However, the examples were limited to the version of mongosh that’s embedded in MongoDB Compass. Although mongosh can be a handy tool to use in conjunction with Compass, MongoDB also offers a freestanding version of mongosh that provides greater flexibility and gives you more control over the command environment.
To use the freestanding version of mongosh, you must first