For details on specific commands, including syntax and examples, click on the specific command to go to its reference page.
Copies a non-capped collection as a new capped collection.
Add options to a collection or modify a view definition.
Defragments a collection and rebuilds the indexes.
Internal command to flush connection pool.
Converts a non-capped collection to a capped collection.
Creates a collection or a view.
Builds one or more indexes for a collection.
Returns a document that contains information on in-progress operations for the database instance.
Removes the specified collection from the database.
Removes the current database.
Drops outgoing connections to the specified list of hosts.
Removes indexes from a collection.
Flushes pending writes to the storage layer and locks the database to allow backups.
Unlocks one fsync lock.
Retrieves the global default read and write concern options for the deployment.
New in version 4.4.
Retrieves details on audit configuration and filters.
New in version 5.0.
Retrieves configuration options.
Kills the specified cursors for a collection.
Terminates an operation as specified by the operation ID.
Returns a list of collections in the current database.
Returns a document that lists all databases and returns basic database statistics.
Lists all indexes for a collection.
Rotates the MongoDB logs to prevent a single file from taking too much space.
Rebuilds all indexes on a collection.
Changes the name of an existing collection.
Performs online TLS certificate rotation.
Enables or disables features that persist data that are backwards-incompatible.
Changes the minimum number of data-bearing members (i.e commit quorum), including the primary, that must vote to commit an in-progress index build before the primary marks those indexes as ready.
Modifies configuration options.
Sets the global default read and write concern options for the deployment.
New in version 4.4.