Open a MongoDB command shell instance by launching mongosh.exe. For more information on MongoDB Shell commands, see mongosh. Use the previously installed MongoDB Shell in the following steps to create a database, make collections, and store documents. Replace with the directory chosen in the previous step.
In the OS command shell (not the MongoDB Shell), use the following command to connect to MongoDB on default port 27017. The mongo Shell doesn't create new directories. Create the directory if it doesn't exist. Add the resulting path for mongosh.exe to the PATH environment variable.Ĭhoose a directory on the development machine for storing the data. Add C:\Program Files\MongoDB\Server\\bin to the PATH environment variable.ĭownload the MongoDB Shell and choose a directory to extract it to. On Windows, MongoDB is installed at C:\Program Files\MongoDB by default. Visual Studio IDE running on Windows in a VM in the Cloud.įor more information, see Visual Studio for Mac retirement announcement.Įnable MongoDB and Mongo DB Shell access from anywhere on the development machine:.
Visual Studio for Mac will no longer be supported starting August 31, 2024. Microsoft has announced the retirement of Visual Studio for Mac.