- Use an Editor for Commands
- Learn to use external or built-in editors in
mongoshfor multiline command editing, including setting up and using editors likevi,nano, or Visual Studio. - Configure Settings
- Configure
mongoshsettings to customize shell behaviors, including logging, telemetry, and history management, using the config API or a global configuration file. - Customize the
mongoshPrompt - Customize the
mongoshprompt 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
mongoshto manage pseudo-anonymous usage data collection during only interactive and agentic sessions. Enable or disable data collection at any time.