TOOLS
An interactive tool for data manipulation (CRUD), advanced querying (pipelines), and management of users, data replication, and scaling.
MongoDB Shell (mongosh) is an interactive tool used for direct data manipulation, advanced querying, database administration, and access control. It can perform all essential data operations: creating/viewing, adding, updating, and deleting data. You can also run powerful queries to analyze your data and perform administrative tasks like managing user access or creating indexes to improve performance. All of these actions can be written into scripts, allowing you to easily automate repetitive tasks.
The primary difference has to do with data vs. data infrastructure.
The simplest way to understand the difference is to think about what you want to manage.
You should use the MongoDB Shell (mongosh) when you need to:
You should use the Atlas CLI when you need to: