@@ -22,14 +22,39 @@ Configuration File Location
22
22
---------------------------
23
23
24
24
The first time you run the :ref:`mongocli-config` command, the
25
- {+mcli+} creates a configuration file called ``mongocli .toml``. The
25
+ {+mcli+} creates a configuration file called ``config .toml``. The
26
26
{+mcli+} grants the user who ran the command read and write access to
27
- the file. The {+mcli+} saves the configuration file to the folder where
28
- the system stores application configuration files, which is defined by
29
- the ``$XDG_CONFIG_HOME`` environment variable. By default, this location
30
- is the ``/.config`` folder of the user's home directory. If this folder
31
- doesn't exist, the {+mcli+} creates the folder and grants the user read,
32
- write, and execute permissions.
27
+ the file. The {+mcli+} saves the configuration file to the following location
28
+ depending on your operating system:
29
+
30
+ .. tabs-platforms::
31
+
32
+ .. tab::
33
+ :tabid: macos
34
+
35
+ .. code-block::
36
+
37
+ /Users/{username}/Library/Application Support/mongocli
38
+
39
+ .. tab::
40
+ :tabid: windows
41
+
42
+ .. code-block::
43
+
44
+ %AppData/mongocli
45
+
46
+ .. tab::
47
+ :tabid: linux
48
+
49
+ .. code-block::
50
+
51
+ $XDG_CONFIG_HOME/mongocli
52
+
53
+ If ``$XDG_CONFIG_HOME`` is not set, the {+mcli+} uses:
54
+
55
+ .. code-block::
56
+
57
+ $HOME/.config/mongocli
33
58
34
59
.. _mcli-profiles:
35
60
@@ -94,7 +119,8 @@ contains the following settings:
94
119
.. code-block:: text
95
120
:copyable: false
96
121
97
- # ~/.config/mongocli.toml
122
+
123
+ $XDG_CONFIG_HOME/mongocli/config.toml
98
124
99
125
mongosh_path = "/usr/local/bin/mongosh"
100
126
0 commit comments