Show visible databases in the deployment.

Section: Connect and navigate

List databases

javascript
javascript
show dbs
Explanation

A quick overview of the databases you can access.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Connect and navigate
Switch database
Change the current database context.
OpenIn sheetjavascriptsame section
List collections
Show collections in the current database.
OpenIn sheetjavascriptsame section
Get collection names programmatically
Return an array of collection names.
OpenIn sheetjavascriptsame section
Check database stats
Inspect size, object count, and storage metrics.
OpenIn sheetjavascriptsame section
Start mongosh locally
Open an interactive shell to a local deployment.
OpenIn sheetbashsame section
Connect with a MongoDB URI
Connect directly with a full connection string.
OpenIn sheetbashsame section