All tools/MongoDB Shell

MongoDB Shell

mongosh

The MongoDB Shell is a fully functional JavaScript and Node.js REPL environment for interacting with MongoDB deployments.

Detected by mongosh | macOS, Linux, Windows |www.mongodb.com

Sync rules

What travels, what stays, what never leaves
MongoDB Shell in your home directory Every rule on this page, by file
· ~/.mongoshrc.js Sync
{"enableTelemetry":false,"displayBatchSize":50,"inspectDepth":8,"inspectCompact":3,"historyLength":5000,"redactHistory":"remove-redact","showStackTraces":true,"logRetentionDays":14,"logLocation":"/Users/octocat/Library/Logs/mongosh"}machine-local

Each machine keeps its own copy of these.

· mongosh_repl_history Exclude
· snippets/ Exclude
{"enableTelemetry":false,"displayBatchSize":50,"inspectDepth":8,"inspectCompact":3,"historyLength":5000,"redactHistory":"remove-redact","showStackTraces":true,"logRetentionDays":14,"logLocation":"/Users/octocat/Library/Logs/mongosh"}machine-local

Each machine keeps its own copy of these.

· mongosh_repl_history Exclude
· snippets/ Exclude

Only what the catalog names. A directory that syncs brings everything inside it except what is listed as excluded here.

Use it with your dotfile manager

Same data, in the shape your tool already reads
Opens Otty and adds this tool to what it syncs

Opens otty://sync/add/mongosh. Otty ships with this catalog, so the link only has to name the tool — nothing is downloaded.

Every one of these is generated from the same rules as this page. None of them splits logLocation and logLocation for you — that part is Otty’s own sync, or a template you write by hand.