I know how to list all collections in a particular database, but how do I list all available databases in MongoDB shell?
For MongoDB shell version 3.0.5 insert the following command in the shell:
db.adminCommand('listDatabases')
or alternatively:
db.getMongo().getDBNames()