Thursday, October 10, 2019

Install just the MongoDB Shell on Mac OSX

If you're going through the 'MongoDB university' tutorials, they suggest installing all of MongoDB on your Mac.   This is probably not what you want if you are running a Docker-based local environment - You probably want to run the server in a container, and you just want to connect to that container, or your Atlas cloud-based servers from the command line.

Fortunately, there's the MongoDB brew tap!

To use this, just:

  1. Make sure you have Homebrew installed.
  2. Install the tap:  brew tap mongodb/brew
  3. Install the MongoDB command line: brew install mongodb-community-shell
Credits to this answer on dba.stackexchange!



No comments:

Post a Comment