Docs HomeMongoDB Compass

• Use Cases
• Configuration File Location
• Behavior

You can configure MongoDB Compass settings using a configuration file. Configure settings with a configuration file to maintain consistent behavior between Compass sessions.

Use the configuration file to specify Compass settings and behaviors. For example:

• If your deployment has strict privacy requirements, you can configure Compass to block outgoing network connections.

• If you need to restrict what actions users can perform in Compass, you can disable the embedded shell and make Compass read-only.

• If you have multiple team members using Compass, you can use a common configuration file to ensure a consistent user experience.

• For macOS and Linux, the configuration file is located at /etc/mongodb-compass.conf.

• For Windows, the configuration file is located at <path\to\compass>\..\mongodb-compass.cfg.

When you configure settings with a configuration file:

• You can not modify settings set in the configuration file after startup.

• You can specify the configuration file in either EJSON or YAML format.

• To view all available Compass configuration options, run the following command in the folder containing your MongoDB Compass executable:

.leafygreen-ui-1xcl9uc{color:inherit;font-size:13px;font-family:'Source Code Pro',Menlo,monospace;line-height:24px;font-size:15px;}.leafygreen-ui-1v41da1{border-spacing:0;width:100%;}.leafygreen-ui-7razhx{border-spacing:0;vertical-align:top;padding:0 16px;}<path-to-Compass-executable> --help

To see how to configure specific settings, see Compass Configuration File Options.

←  In-Use Encryption TutorialBlock Outgoing Network Connections →
Share Feedback