mongodb 7.0 Mongo shell (mongosh) is missing

Hi, I installed databases/mongodb70 but the shell is not present (mongosh). The vendor offers only downloads for Linux but not for FreeBSD afaik.
I can use my system remotely from a Linux client, but I would like to access it from FreeBSD.

How can mongosh be installed on FreeBSD?
 
Are you found solution? On 6.0 missing mongosh, mongodump and mongorestore too.

--- edit ---
Found that mongodump & mongorestore are in mongodb-tools-100.8.0_1 package but missing mongosh.
 
So I'm in this same place. FreeBSD 13.2, ports tree updated approx 4 Feb 2024, built and installed mongodb70. There is no client available on my system. I do not see a port, or other option, for a MongoDB shell/client.
I installed mongodb-tools, but already noted above that does not help me here. Any suggestions? I don't have a `mongo` or `mongosh` client program installed, so I cannot test my MongoDB installation.
 
Note: MongoDB Shell is an open source (Apache 2.0), standalone product developed separately from the MongoDB Server.
That's why it's not included with the MongoDB server port/package.

I find it a little odd that it's supposed to be open source but a link to the actual source is nowhere to be found. That's probably why nobody created a port for it. Apparently it's written in Javascript, I suspect it won't be that hard to create a FreeBSD port for it. If the actual source code for it can be found.

Edit: After going through their Github account this appears to be the source: https://github.com/mongodb/docs-mongodb-shell
Edit2: That's only the documentation for mongodb-shell. Still unable to find the source for it.
 
That's why it's not included with the MongoDB server port/package. I find it a little odd that it's supposed to be open source but a link to the actual source is nowhere to be found. That's probably why nobody created a port for it. Apparently it's written in Javascript, I suspect it won't be that hard to create a FreeBSD port for it. If the actual source code for it can be found. Edit: After going through their Github account this appears to be the source: https://github.com/mongodb/docs-mongodb-shell Edit2: That's only the documentation for mongodb-shell. Still unable to find the source for it.
I am not certain how official this source is, or if it is affilliated with MongoDB, but here is a source code repository for A mongosh I found: https://github.com/mongodb-js/mongosh
 
I have a small patch for databases/mongodb70 that causes it to build and install the `mongo` shell along with the server. I don't know about the mongosh program, that sounds like it would be a different port. But it seems that installing `mongo` from the same tarball as `mongod` and `mongos` should be reasonable.

I checked the tree out via git just for this. :-). I can submit a PR unless there's some reason (from the above) why it isn't good to do so.
 
Now I look around, after having solved my immediate problem. When I run `mongo` I see that it says:
Warning: the "mongo" shell has been superseded by "mongosh",
which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in
an upcoming release.
For installation instructions, see
https://docs.mongodb.com/mongodb-shell/install/
But I still suggest that installing the earlier client that ships with the server is better than installing no client at all.

`mongosh` should be another port/package I suppose.
https://github.com/mongodb-js/mongosh/releases
 
Hi everyone,

I faced the same issue as you all when we wanted to upgrade MongoDB to 6.0 without the cli packaged in.

I have a good news. I successfully built a standalone version of mongosh for BSD using poudriere.
I am ready to push it to the ports tree but don't actually know what steps do I have to follow.

Can I open a PR on the github repo ?
A review would be also greatly appreciated.

The package is available at : https://pkg.vultureproject.org/FreeBSD:13:amd64-dev/All/mongosh-2.2.5.pkg

I did not try to install it on another distro so feel free to do so and get back to me to improve the support.
 
Back
Top