mongosh

Interactive MongoDB Shell for querying and managing MongoDB databases

brewmacoslinux
Try with needOr install directly
Source

About

MongoDB Shell to connect, configure, query, and work with your MongoDB database

Commands

mongosh

Examples

Connect to local MongoDB instance on default port$ mongosh
Connect to a remote MongoDB server with authentication$ mongosh 'mongodb+srv://username:password@cluster.mongodb.net/dbname'
Execute a query to find documents in a collection$ mongosh --eval "db.users.find({age: {\$gt: 25}})"