Common mongodb shell
> Use cmd_test // create a database switched to db cmd_test> db. createCollection ("test") // create a table is the collection {"OK": 1}> db. db. addUser (db. group (db. adminCommand (db. groupcmd (db. auth (db. groupeval (db. changeUserPassword (db. hasOwnProperty (db. cloneCollection (db. help (db. cloneDatabase (db. hostInfo (db. commandHelp (db. isMaster (db. constructor db. killOP (db. copyDatabase (db. killOp (db. createCollection (db. listCommands (db. createRole (db. loadServerScripts (db. createUser (db. logout (db. currentOP (db. printCollectionStats (db. currentOp (db. printReplicationInfo (db. dbEval (db. printShardingStatus (db. dropAllRoles (db. printSlaveReplicationInfo (db. dropAllUsers (db. propertyIsEnumerable (db. dropDatabase (db. prototypedb. dropRole (db. removeUser (db. dropUser (db. repairDatabase (db. eval (db. resetError (db. forceError (db. revokePrivilegesFromRole (db. fsyncLock (db. revokeRolesFromRole (db. fsyncUnlock (db. revokeRolesFromUser (db. getCollection (db. runCommand (db. getCollectionNames (db. serverBits (db. getLastError (db. serverBuildInfo (db. getLastErrorCmd (db. server‑lineopts (db. getLastErrorObj (db. serverStatus (db. getMongo (db. setProfilingLevel (db. getName (db. setSlaveOk (db. getPrevError (db. setWriteConcern (db. getProfilingLevel (db. shutdownServer (db. getProfilingStatus (db. stats (db. getReplicationInfo (db. system. indexesdb. getRole (db. testdb. getRoles (db. toLocaleString (db. getSiblingDB (db. toString (db. getSisterDB (db. tojson (db. getSlaveOk (db. unsetWriteConcern (db. getUser (db. updateRole (db. getUsers (db. updateUser (db. getWriteConcern (db. upgradeCheck (db. grantPrivilegesToRole (db. upgradeCheckAllDBs (db. grantRolesToRole (db. valueOf (db. grantRolesToUser (db. version (
The above is a common shell