mongo ShellOn this page本页内容
The MongoDB v5.0中已弃用mongo shell has been deprecated in MongoDB v5.0. mongo shell。The replacement is 替代者是mongosh.mongosh。
Older 较早的mongo shell documentation is included with the corresponding documentation for that MongoDB release.mongoshell文档包含在MongoDB版本的相应文档中。
Quick Links to prior versions到早期版本的快速链接
mongo Shell and mongoshmongo-Shell和mongosh的比较The new MongoDB Shell (新的MongoDB Shell(mongosh) offers numerous advantages over the legacy mongo shell, such as:mongosh)与传统的mongoshell相比具有许多优势,例如:
mongosh currently supports a subset of the legacy mongo shell methods. mongosh目前支持遗留mongoshell方法的一个子集。To maintain backwards compatibility, the methods that the new 为了保持向后兼容性,新mongosh supports use the same syntax as the corresponding methods in the legacy mongo shell.mongosh支持的方法使用与传统mongoshell中相应方法相同的语法。
The list of methods supported by mongosh is here: MongoDB Shell Methods.mongosh支持的方法列表如下:MongoDB Shell方法。
mongo Reference Pagemongo参考页