$ mongo --host 127.0.0.1:27017
now use terminat instance to run mondoDB commands and manipulate DB through terminal.
help for running: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/#run-mongodb
Then read Mongo Docs to continue: