open your ZSH RC file subl ~/.zshrc
add this to the end of the file
# load mongodb daemon
alias mongodb-start="launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist"
#unload mongodb daemon
alias mongodb-stop="launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist"
save and then run the command:
source ~/.zshrc
to load your changed file.
Now you can start and stop the daemon with the aliases mongodb-start
and mongodb-stop