MongoDB version 6 archive does not contain mongo cli

Hello,

I am trying to install MongoDB using the archive https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-6.0.3.tgz and I notice that this does not contain any of the utilities like mongo cli client. In previous versions (ex: version4 https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.0.28.tgz) the utilities like mongo cli.

Is this expected? How can I install the cli and other utilities?

Regards
Ani

Hi @Aniruddha_Kulkarni,

The legacy mongo shell was removed in the MongoDB 6.0 server release, and replaced by the newer MongoDB Shell (mongosh) which is a JavaScript REPL environment using Node.js. The new MongoDB Shell was built to be extensible and embeddable with a modern command-line experience (see
Introducing the new MongoDB Shell
). For example, MongoDB Compass includes an embedded version of mongosh.

You can download mongosh packages or tarballs from the MongoDB Download Centre: MongoDB Shell Download.

General commands and interaction in mongosh is very similar to the legacy mongo shell , with some additional features. If you are familiar with writing scripts for the mongo shell you will want to review the mongosh documentation including Compatibility Changes with Legacy mongo Shell and Include External Files and Modules in Scripts. Since mongosh uses Node.js, you can now require built-in Node.js modules or external modules from npm.

Regards,
Stennie

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.