I have Docker installed and am running a MongoDB
container for my local development on my Mac. The problem is that I can't connect to said DB easily from CLI. I have Robo 3T installed, but I would prefer to use the CLI
client instead.
Is there a known way to install JUST the mongo shell
(command mongo
) and not the full DB distribution on OS X?
Best Answer
You can use HomeBrew, see the official MongoDB HomeBrew page.
Just add the tap:
And then after adding the tap from above, you can then install the Mongo shell with: