MongoDB 8 · Connecting and navigating

Check the server version

Print the version of the server you are connected to.

db.version()

Official MongoDB 8 documentation

More connecting and navigating commands

All connecting and navigating commands · MongoDB 8 cheatsheet

Was this page helpful?