OPTIONS

Administration CommandsΒΆ

Name Description
clean Internal namespace administration command.
cloneCollectionAsCapped Copies a non-capped collection as a new capped collection.
cloneCollection Copies a collection from a remote host to the current host.
clone Copies a database from a remote host to the current host.
closeAllDatabases Internal command that invalidates all cursors and closes open database files.
collMod Add flags to collection to modify the behavior of MongoDB.
compact Defragments a collection and rebuilds the indexes.
connPoolSync Internal command to flush connection pool.
connectionStatus Reports the authentication state for the current connection.
convertToCapped Converts a non-capped collection to a capped collection.
copydb Copies a database from a remote host to the current host.
createIndexes Builds one or more indexes for a collection.
create Creates a collection and sets collection parameters.
dropDatabase Removes the current database.
dropIndexes Removes indexes from a collection.
drop Removes the specified collection from the database.
filemd5 Returns the md5 hash for files stored using GridFS.
fsync Flushes pending writes to the storage layer and locks the database to allow backups.
getParameter Retrieves configuration options.
logRotate Rotates the MongoDB logs to prevent a single file from taking too much space.
reIndex Rebuilds all indexes on a collection.
renameCollection Changes the name of an existing collection.
repairDatabase Repairs any errors and inconsistencies with the data storage.
setParameter Modifies configuration options.
shutdown Shuts down the mongod or mongos process.
touch Loads documents and indexes from data storage to memory.
←   unsetSharding clean  →