brew install mongo shell code example
Example 1: brew install mongodb
brew tap mongodb/brew
Example 2: brew mongo start
brew services start mongodb-community@4.4
brew tap mongodb/brew
brew services start mongodb-community@4.4