This blog post should show some of the MongoDB commands which you can run in your terminal. Will update it when i think a command should be added here 🙂


Show all DBs on your Machine:

Use a DB for further operations:

Show all collections in current db:

Show all entries in a specific collection (replace collection with the collection you want):

Search for a specific entry in the collection:

Save the changes of an object or a new object to the collection :





MongoDB Cheatsheet
Tagged on:     

Leave a Reply


Get every new post on this blog delivered to your Inbox.

Join other followers:

Welcome Damir Kusar

Log in

Lost your password?
%d bloggers like this: