MongoDb Commands - Retrojb/kotlin-mongodb GitHub Wiki

Mongo Shell Commands

Run:

cd /mongoPath... run mongod ./bin/mongod if it denies permission run sudo chmod +x <WD to bin with .sh> Open a new terminal and cd /mongoPath... and run ./bin/mongo this will open your mongo shell you can manually add data to the db.

Make a db:

use (whatever your Db is) all commands start with db db.collection.command

count, countDocument, createIndex, deleteOne/Many, find, findOneAndDelete, getIndexes, insertOne/Many plus other crud operations