Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Mongo CLI

Sharad Agarwal edited this page Mar 7, 2020 · 7 revisions

List the databases:

show dbs

Create/use a database:

use database name

See collections inside a database:

show collections

Count values inside the collection:

db.collectionname.count()

See data inside the collection:

db.collectionname.find()

Clone this wiki locally