For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
- Use an Editor for Commands
- Learn to use external or built-in editors in
mongosh for multiline command editing, including setting up and using editors like vi, nano, or Visual Studio. - Configure Settings
- Configure
mongosh settings to customize shell behaviors, including logging, telemetry, and history management, using the config API or a global configuration file. - Customize the
mongosh Prompt - Customize the
mongosh prompt to display dynamic session information, such as line numbers, database and hostname, or system uptime and document count. - Configure Telemetry Options
- Configure telemetry options in
mongosh to manage anonymous usage data collection, with options to enable or disable it at any time.