Products
Platform
Atlas
Build on a developer data platform
Platform Services
Database
Deploy a multi-cloud database
Search
Deliver engaging search experiences
Vector Search
Design intelligent apps with gen AI
Stream Processing
Unify data in motion and data at rest
Self Managed
Enterprise Advanced
Run and manage MongoDB yourself
Community Edition
Develop locally with MongoDB
Tools
Compass
Work with MongoDB data in a GUI
Integrations
Integrations with third-party services
Relational Migrator
Migrate to MongoDB with confidence
View All Products
Explore our full developer suite
arrow-right
Build with MongoDB Atlas
Get started for free in minutes
Sign Up
Test Enterprise Advanced
Develop with MongoDB on-premises
Download
Try Community Edition
Explore the latest version of MongoDB
Download
Resources
Documentation
Atlas Documentation
Get started using Atlas
Server Documentation
Learn to use MongoDB
Start With Guides
Get step-by-step guidance for key tasks
Tools and Connectors
Learn how to connect to MongoDB
MongoDB Drivers
Use drivers and libraries for MongoDB
Resources Hub
Get help building the next big thing with MongoDB
arrow-right
Connect
Developer Center
Explore a wide range of developer resources
Community
Join a global community of developers
Courses and Certification
Learn for free from MongoDB
Events and Webinars
Find an event or webinar near you
Solutions
Use cases
Artificial Intelligence
Edge Computing
Internet of Things
Mobile
Payments
Serverless Development
Industries
Financial Services
Telecommunications
Healthcare
Retail
Public Sector
Manufacturing
Solutions Library
Organized and tailored solutions to kick-start projects
arrow-right
Developer Data Platform
Accelerate innovation at scale
Learn more
arrow-right
Startups and AI Innovators
For world-changing ideas and AI pioneers
Learn more
arrow-right
Customer Case Studies
Hear directly from our users
See Stories
arrow-right
Company
Careers
Start your next adventure
Blog
Read articles and announcements
Newsroom
Read press releases and news stories
Partners
Learn about our partner ecosystem
Leadership
Meet our executive team
Company
Learn more about who we are
Contact Us
Reach out to MongoDB
Let’s chat
arrow-right
Investors
Visit our investor portal
Learn more
arrow-right
Pricing
Eng
Support
Sign In
Try Free
menu-vertical
Products
Platform
Atlas
Build on a developer data platform
Platform Services
Database
Deploy a multi-cloud database
Search
Deliver engaging search experiences
Vector Search
Design intelligent apps with gen AI
Stream Processing
Unify data in motion and data at rest
Self Managed
Enterprise Advanced
Run and manage MongoDB yourself
Community Edition
Develop locally with MongoDB
Tools
Compass
Work with MongoDB data in a GUI
Integrations
Integrations with third-party services
Relational Migrator
Migrate to MongoDB with confidence
View All Products
Explore our full developer suite
arrow-right
Build with MongoDB Atlas
Get started for free in minutes
Sign Up
Test Enterprise Advanced
Develop with MongoDB on-premises
Download
Try Community Edition
Explore the latest version of MongoDB
Download
Resources
Documentation
Atlas Documentation
Get started using Atlas
Server Documentation
Learn to use MongoDB
Start With Guides
Get step-by-step guidance for key tasks
Tools and Connectors
Learn how to connect to MongoDB
MongoDB Drivers
Use drivers and libraries for MongoDB
Resources Hub
Get help building the next big thing with MongoDB
arrow-right
Connect
Developer Center
Explore a wide range of developer resources
Community
Join a global community of developers
Courses and Certification
Learn for free from MongoDB
Events and Webinars
Find an event or webinar near you
Solutions
Use cases
Artificial Intelligence
Edge Computing
Internet of Things
Mobile
Payments
Serverless Development
Industries
Financial Services
Telecommunications
Healthcare
Retail
Public Sector
Manufacturing
Solutions Library
Organized and tailored solutions to kick-start projects
arrow-right
Developer Data Platform
Accelerate innovation at scale
Learn more
arrow-right
Startups and AI Innovators
For world-changing ideas and AI pioneers
Learn more
arrow-right
Customer Case Studies
Hear directly from our users
See Stories
arrow-right
Company
Careers
Start your next adventure
Blog
Read articles and announcements
Newsroom
Read press releases and news stories
Partners
Learn about our partner ecosystem
Leadership
Meet our executive team
Company
Learn more about who we are
Contact Us
Reach out to MongoDB
Let’s chat
arrow-right
Investors
Visit our investor portal
Learn more
arrow-right
Pricing
Eng
Support
Sign In
Try Free
menu-vertical
Docs Home
MongoDB Manual
Select a version
Introduction
MongoDB Shell (mongosh)
MongoDB CRUD Operations
Aggregation Operations
Data Models
Indexes
Security
Replication
Sharding
Change Streams
Time Series
Transactions
Administration
Storage
Frequently Asked Questions
Reference
Collation
Configuration File Options
Connection String URI Format
Database Commands
Aggregation Commands
Geospatial Commands
Query and Write Operation Commands
Query Plan Cache Commands
Authentication Commands
User Management Commands
Role Management Commands
Replication Commands
Sharding Commands
Sessions Commands
Administration Commands
Diagnostic Commands
buildInfo
collStats
connPoolStats
connectionStatus
dataSize
dbHash
dbStats
driverOIDTest
explain
features
getCmdLineOpts
getLog
hostInfo
isSelf
listCommands
lockInfo
netstat
ping
profile
serverStatus
shardConnPoolStats
top
validate
validateDBMetadata
whatsmyuri
Free Monitoring Commands
System Events Auditing Commands
Default MongoDB Port
Default MongoDB Read Concerns/Write Concerns
Exit Codes and Statuses
Explain Results
Glossary
Log Messages
MongoDB Cluster Parameters
MongoDB Limits and Thresholds
MongoDB Package Components
MongoDB Server Parameters
MongoDB Wire Protocol
mongosh
Methods
Operators
Stable API
Server Sessions
System Collections
Legacy
mongo
Shell
Release Notes
Technical Support
Docs Menu
Feedback
Docs Home
/
MongoDB Manual
/
Reference
/
Database Commands
/
Diagnostic Commands
isSelf
_isSelf
_isSelf
is an internal command.
Back
hostInfo
Next
listCommands