Install and manage multiple versions of MongoDB.
npm install -g mongodb-version-manager
$ m
Usage:
m use <version> [--branch=<branch> --distro=<distro> --enterprise]
m url <version> [--branch=<branch> --distro=<distro> --enterprise]
m available [--stable --unstable --rc --pokemon]
m path
Once you've installed your first version of mongo with the m use
command, update your ~/.bashrc
file:
export PATH=~/.mongodb/versions/mongodb-current/bin:$PATH
When installed globally, each version of MongoDB you've installed are stored under ~/.mongodb/versions
:
βββ mongodb-3.0.7-osx-64
βββ mongodb-3.2.0-osx-64
βββ mongodb-3.3.8-osx-64-enterprise
βββ mongodb-3.4.0-rc2-osx-64
βββ mongodb-3.4.4-osx-64
βββ mongodb-3.4.5-osx-64-enterprise
βββ mongodb-3.5.1-osx-64
βββ mongodb-3.6.3-osx-64
βββ mongodb-3.6.4-osx-64
βββ mongodb-3.7.3-osx-64
βββ mongodb-current -> ~/.mongodb/versions/mongodb-3.6.4-osx-64
The contents of each directory under ~/.mongodb/versions/mongodb-*
are:
βββ GNU-AGPL-3.0
βββ MPL-2
βββ README
βββ THIRD-PARTY-NOTICES
βββ bin
βββ bsondump
βββ install_compass
βββ mongo
βββ mongod
βββ mongodump
βββ mongoexport
βββ mongofiles
βββ mongoimport
βββ mongoperf
βββ mongoreplay
βββ mongorestore
βββ mongos
βββ mongostat
βββ mongotop
-
mongodb-runner
Easily control MongoDB for testing.
Apache 2.0