DEV Community

Cover image for Introducing the new MongoDB Shell- mongosh
manish srivastava
manish srivastava

Posted on • Updated on

Introducing the new MongoDB Shell- mongosh

Since the beginning, MongoDB has had a shell (mongo), and it has been used for one reason or another by almost everyone who has ever used MongoDB.
The new MongoDB Shell is designed to be expandable, so we can easily add new functionality as new products and services are added to the MongoDB platform, it is embeddable, so you can use it (or parts of it) inside other products (one example is MongoDB for VS Code), and last but not least it provides a modern command-line experience.

Installation :
https://docs.mongodb.com/mongodb-shell/install#mdb-shell-install

Features:

Highlighting the syntax: making things more readable and facilitating the spotting of errors;

Smart autocomplete: save time when typing, and help when you don't remember a command or an operator;

Contextual support: You can get contextual support for shell classes and commands with direct links to the online documentation when autocomplete is not sufficient;

Messages of error: When something goes wrong.

As you would expect you can run scripts in the MongoDB shell. The MongoDB shell is indeed a very powerful scripting environment. Because it's built on top of the Node.js REPL, you have access to the entire Node.js API and npm package ecosystem.

Read more on https://www.mongodb.com/blog/post/introducing-the-new-shell

I hope you people like the above article and learned something.

IMP REQUEST:
You are most welcome to join my team form for joining .
Also you are most welcome to join OPEN SOURCE INTELLIGENT SYSTEM (OSINT)if you can help in open source project regarding safeguarding humans from various diseases like CORONA outbreak
https://github.com/Manishfoodtechs/OSINTHRH/wiki

Contact email: Manishfoodtechs@gmail.com.

If you have any problem, our team is also engaged in professional consultancy and delivery.

Top comments (0)