To access MongoDB from the command line, login to the server running it:

mongo
show dbs (list of existing databases)
use [db-name] (ex: use nbdb; if it doesn't exist, create it)
show collections (list of document collections)
db.[collection-name].find() (list the contents of a collection)
exit