|
| 1 | +.. _config-file: |
| 2 | + |
| 3 | +========================== |
| 4 | +Compass Configuration File |
| 5 | +========================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +You can configure |compass| settings using a configuration file. Configure |
| 16 | +settings with a configuration file to maintain consistent behavior between |
| 17 | +|compass-short| sessions. |
| 18 | + |
| 19 | +Use Cases |
| 20 | +--------- |
| 21 | + |
| 22 | +Use the configuration file to specify |compass-short| settings and behaviors. |
| 23 | +For example: |
| 24 | + |
| 25 | +- If your deployment has strict privacy requirements, you can configure |
| 26 | + |compass-short| to block outgoing network connections. |
| 27 | + |
| 28 | +- If you need to restrict what actions users can perform in |compass-short|, you |
| 29 | + can disable the embedded shell and make |compass-short| read-only. |
| 30 | + |
| 31 | +- If you have multiple team members using |compass-short|, you can use a common |
| 32 | + configuration file to ensure a consistent user experience. |
| 33 | + |
| 34 | +Configuration File Location |
| 35 | +--------------------------- |
| 36 | + |
| 37 | +- For macOS and Linux, the configuration file is located at ``/etc/mongodb-compass.conf``. |
| 38 | + |
| 39 | +- For Windows, the configuration file is located at ``<path\to\compass>\..\mongodb-compass.cfg``. |
| 40 | + |
| 41 | +Behavior |
| 42 | +-------- |
| 43 | + |
| 44 | +When you configure settings with a configuration file: |
| 45 | + |
| 46 | +- You can not modify settings set in the configuration file after startup. |
| 47 | + |
| 48 | +- You can specify the configuration file in either EJSON or YAML format. |
| 49 | + |
| 50 | +- To view all available |compass-short| configuration options, run the following |
| 51 | + command in the folder containing your |compass| executable: |
| 52 | + |
| 53 | + .. code-block:: sh |
| 54 | + |
| 55 | + <path-to-Compass-executable> --help |
| 56 | + |
| 57 | +Tasks |
| 58 | +----- |
| 59 | + |
| 60 | +To see how to configure specific settings, see :ref:`Compass Configuration File Options |
| 61 | +<config-file-options>`. |
| 62 | + |
| 63 | +.. toctree:: |
| 64 | + :titlesonly: |
| 65 | + |
| 66 | + /config-settings/config-file-options |
0 commit comments