Configure Settings
On this page
To specify certain shell behaviors, you can configure mongosh
settings.
Configurable Settings
You can configure the following settings for mongosh
:
Key | Type | Default | Description |
---|---|---|---|
| integer | 20 | The number of items displayed per cursor iteration |
| boolean |
| Enables sending anonymized tracking and diagnostic data to MongoDB. |
| string |
| Designates an editor to use within the |
| boolean |
| Only available in the global configuration file. When true, users cannot enable telemetry manually. |
| integer | 1000 | The number of items to store in |
| integer or boolean | 3 | |
| integer or Infinity | 6 | The depth to which objects are printed. Setting |
| string |
| Controls what information is recorded in the shell history. Must be one of:
|
| boolean |
| Controls display of a stack trace along with error messages. |
| boolean |
| If |
| string | A semicolon-separated list of URLs that link to a snippet registry. | |
| string |
How to Configure Settings
To configure mongosh
settings, you can either use: