The mongo shell is installed as /usr/local/bin/mongo.
$ mongo
MongoDB shell version v4.4.29
connecting to:
mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" :
UUID("666a27c9-2944-4b54-9d27-10c999dfdaf6") }
MongoDB server version: 4.4.29
Welcome to the MongoDB shell.
For interactive help, type "help".
You can find which files are installed by a package with pkg_info(1) - or the
pkglocatedb(1) port which allows many more search options.
$ pkg_info -L mongodb
Information for inst:mongodb-4.4.29
Files:
/etc/rc.d/mongod
/usr/local/bin/mongo
/usr/local/bin/mongod
/usr/local/bin/mongos
/usr/local/man/man1/mongo.1
/usr/local/man/man1/mongod.1
/usr/local/man/man1/mongos.1
/usr/local/man/man5/mongodb-parameters.5
/usr/local/share/examples/mongodb/mongodb.conf
On Mon, Apr 22, 2024 at 05:40:22PM GMT, Luca Leone wrote:
> hi Everybody :)
>
> I successfully installed the mongodb-4.4.2 package on the server which run
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo shell.
> I'd like to do the same on the server with the installed mongo db BUT there's
> no "mongo shell" package and I could not find any doc explaining how to
> install
> the mongo shell on openBSD. Is there a way? Or is there an alternative way to
> interact directly with the db?
>
> Thanks
> Luca