I'm working with docker and containers and I'd like to install and use only mongodb command line tools (mongodump, mongorestore etc ...)
I unsuccessfully checked the docs.
Is it possible to install the command line tools only?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityI'm working with docker and containers and I'd like to install and use only mongodb command line tools (mongodump, mongorestore etc ...)
I unsuccessfully checked the docs.
Is it possible to install the command line tools only?
This was totally easy in May 2018 - everything was at the top level of https://brew.sh and self-proclaimed "The Missing Package Manager for macOS (or Linux)"
Install https://brew.sh to get homebrew system running and then
brew tap mongodb/brew
brew install mongodb-community
brew install mongodb-database-tools
Now in late 2020, the tool no longer meets the criteria to be listed as a top-level installation, so you have to first tap a cask for installation.
Also, the tools are now available separate from the database engine separate from compass (which embeds the former). These links work if you don’t want to brew
the tools.
I tried all the proposed solutions but they did not work with me, I downloaded these tools by:
brew install mongodb/brew/mongodb-database-tools
As for today, the correct answer is this:
brew tap mongodb/brew
brew install mongodb-community
It is possible now.
brew tap mongodb/brew
brew install mongodb-community-shell
mongodb-community-shell
comes without the tools he needs
Feb 20, 2020 at 8:01
mongo
shell. There currently isn't a separate download for just the command-line tools on macOS, but you won't be saving many bytes if you need all butmongod
andmongos
.