Basics for using the MongoDB command line client mongo.
mongo
db.getCollectionNames()
db.getCollection('somecollection').find()