You can list all databases in MongoDB using the following command in the Mongo shell:
mongo show databases
show dbs
This command will display a list of all databases in your MongoDB instance, including the admin
, config
, and local
databases, as well as any additional databases you have created.