Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Only Mongo Client/Shell - not MongoDB on Windows

I found exactly same question for RHEL: (my question is for Windows) Install ONLY mongo shell, not mongodb

Is there an Windows equivalent of: mongodb-org-shell

Can I copy the mongo.exe from a Server installation on another Windows machine?

like image 326
sumon c Avatar asked Jun 25 '18 20:06

sumon c


2 Answers

On Windows, you can install per component using with the unattended installation option.

Once you've downloaded the .msi installer from MongoDB Download Centre. You can install just the mongo shell component using:

msiexec.exe /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.5-signed.msi ^
        ADDLOCAL="Client"

See also Run the Windows Installer From the Windows Command Interpreter

like image 140
Wan Bachtiar Avatar answered Nov 13 '22 07:11

Wan Bachtiar


Upon executing the .msi installation file you can do a custom install of the specific components you want.

Mongo Download: https://www.mongodb.com/download-center/community

like image 37
knowledgy Avatar answered Nov 13 '22 06:11

knowledgy