Navigation

MongoDB Package Components

Core Processes

The core components in the MongoDB package are:

mongod, the core database process
mongos the controller and query router for sharded clusters
mongo the interactive MongoDB Shell.

Windows Services

The mongod.exe and mongos.exe describe the options available for configuring MongoDB when running as a Windows Service. The mongod.exe and mongos.exe binaries provide a superset of the mongod and mongos options.

Binary Import and Export Tools

mongodump provides a method for creating BSON dump files from the mongod instances, while mongorestore makes it possible to restore these dumps. bsondump converts BSON dump files into JSON.

Tools documentation migrated to MongoDB Database Tools

Starting in MongoDB 4.4, the documentation for these tools have been migrated to docs.mongodb.com/database-tools:

For documentation on previous versions of these tools, use the version selector in the top-left corner of the web page to view the documentation for your desired MongoDB version.

Quick Links to older documentation

Data Import and Export Tools

mongoimport provides a method for taking data in JSON, CSV, or TSV and importing it into a mongod instance. mongoexport provides a method to export data from a mongod instance into JSON, CSV, or TSV.

Note

The conversion between BSON and other formats lacks full type fidelity. Therefore you cannot use mongoimport and mongoexport for round-trip import and export operations.

Tools documentation migrated to MongoDB Database Tools

Starting in MongoDB 4.4, the documentation for these tools have been migrated to docs.mongodb.com/database-tools:

For documentation on previous versions of these tools, use the version selector in the top-left corner of the web page to view the documentation for your desired MongoDB version.

Quick Links to older documentation

Diagnostic Tools

Note

Starting in version 4.0, MongoDB offers free Cloud monitoring for standalones and replica sets. For more information, see Free Monitoring.

mongostat and mongotop provide diagnostic information related to the current operation of a mongod instance.

Tools documentation migrated to MongoDB Database Tools

Starting in MongoDB 4.4, the documentation for these tools have been migrated to docs.mongodb.com/database-tools:

For documentation on previous versions of these tools, use the version selector in the top-left corner of the web page to view the documentation for your desired MongoDB version.

Quick Links to older documentation

Security Tools

mongoldap and mongokerberos provide a method for validating a system’s LDAP or Kerberos configuration respectively, and for testing that the authentication process for each succeeds for a given username.

GridFS

mongofiles provides a command-line interact to a MongoDB GridFS storage system.

Tools documentation migrated to MongoDB Database Tools

Starting in MongoDB 4.4, the documentation for this tool has been migrated to docs.mongodb.com/database-tools:

For documentation on previous versions of this tool, use the version selector in the top-left corner of the web page to view the documentation for your desired MongoDB version.

Quick Links to older documentation

MongoDB Compass

New in version 3.6: MongoDB is packaged with an install_compass script, which is a platform-specific installer for MongoDB Compass Community Edition.