HiveBrain v1.2.0
Get Started
← Back to all entries
patternCritical

Is it possible to install just the mongo Shell?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
installthejustmongoshellpossible

Problem

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?

Solution

You can use HomeBrew, see the official MongoDB HomeBrew page.

Just add the tap:

brew tap mongodb/brew


And then after adding the tap from above, you can then install the Mongo shell with:

brew install mongodb-community-shell

Code Snippets

brew tap mongodb/brew
brew install mongodb-community-shell

Context

StackExchange Database Administrators Q#196330, answer score: 57

Revisions (0)

No revisions yet.