MongoDB (mongosh)
RAPR CLI connectorData, Databases & BackendMongoDB database operations via mongosh — queries, aggregations, indexes, collections, users, and replica sets.
MongoDB (mongosh) package details
RAPR CLI connector scope
This is RAPR-authored connector guidance for a command-line tool the user installs locally. The upstream CLI remains governed by its own license and terms. This package contains RAPR-authored CLI usage guidance, install commands, and agent instructions. It does not bundle the upstream CLI binary. Users can also go directly to the public upstream source linked on this page.
How to get started
Install RAPR AI
Download and install RAPR AI on your computer
Find in Marketplace
Open RAPR AI, go to Packages, and browse the marketplace
Install from Marketplace
Click Install. RAPR sets up the wrapper package, connector guidance, or skill instructions for this listing.
MongoDB Shell (mongosh)
Query, manage, and administer MongoDB databases from the command line.
What you can do
- CRUD: Insert, find, update, delete documents
- Aggregation: Build pipelines for data analysis
- Indexes: Create and manage indexes for performance
- Users & Roles: Manage authentication and authorization
- Backup: mongodump and mongorestore for data migration
- Atlas: Manage MongoDB Atlas clusters via CLI
Prerequisites
# Install mongosh
brew install mongosh # macOS
winget install MongoDB.Shell # Windows
# Connect to a database
mongosh "mongodb://localhost:27017/mydb"
Example Commands
- "Find all users created this week"
- "Create an index on the email field"
- "Run an aggregation to count orders by status"
- "Backup the production database"
Ready to try MongoDB (mongosh)?
Download RAPR AI and connect MongoDB (mongosh) in seconds.