Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Show all databases

show databases
show dbs

Show current database

db

Switch / create a database

use <db_name>

Delete current database

db.dropDatabase()

Show database statistics

Returns size, collection count, document count, and other metrics

db.stats()

List database methods

Shows all available commands for the current database

db.help()