Pages

Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts

Wednesday, March 14, 2012

mongo command line shell

> show dbs
Lists existing databases

> use [database-name]
Changes database. By default, test is opened.

> db.[collection-name].find()
Displays the collection's documents