@@ -72,8 +72,8 @@ level: 4
7272ref : verify-profile
7373content : |
7474
75- View the :ref:`configuration file <mcli-config-file>` to verify your
76- profile.
75+ View the :ref:`configuration file <mcli-config-file>` or run the
76+ :ref:`mcli-config-describe-command` command to verify your profile.
7777
7878 .. include:: /includes/admonitions/secure-config-file.rst
7979
@@ -85,55 +85,50 @@ content: |
8585
8686 .. example::
8787
88- In this example, the configuration file is stored in the
89- ``/.config`` folder of the home directory. View the file
90- using the ``cat`` command:
88+ In this example, the following command returns the settings
89+ in the {+default-profile+}:
9190
9291 .. code-block:: sh
9392 :copyable: false
9493
95- cat ~/. config/mongocli.toml
94+ mongocli config describe default
9695
97- The command returns the contents of the configuration file,
98- which contains the {+default-profile+}. The
99- {+default-profile+} has a |svc-api-key| and project ID for an
100- {{service}} deployment.
96+ The command returns the following settings. The {+default-profile+}
97+ has a |svc-api-key|, which is redacted in the command output for
98+ security purposes, and project ID for an {{service}} deployment.
10199
102100 .. code-block:: sh
103101 :copyable: false
104102
105- [default]
106- private_api_key = "abcdef"
107- public_api_key = "d5199648-abcd-1234-efgh-3ed4396a3096"
108- project_id = "7ehf04abc10defb66c7d1234c"
109- service = "{{serviceName}}"
103+ private_api_key = redacted
104+ public_api_key = redacted
105+ project_id = 7ehf04abc10defb66c7d1234c
106+ service = {{serviceName}}
110107
111108 .. tab:: Named Profile
112109 :tabid: named-profile
113110
114111 .. example::
115112
116- In this example, the configuration file is stored in the
117- ``/.config`` folder of your home directory. View the file
118- using the ``cat`` command:
113+ In this example, the following command returns the settings
114+ in the profile named ``myMongoDB``:
119115
120116 .. code-block:: sh
121117 :copyable: false
122118
123- cat ~/. config/mongocli.toml
119+ mongocli config describe myMongoDB
124120
125- The command returns the contents of the configuration file,
126- which contains a profile named ``myMongoDB``. The
127- ``myMongoDB`` profile has a |svc-api-key| and project ID for
128- an {{service}} deployment.
121+ The command returns following settings. The ``myMongoDB`` profile
122+ has a |svc-api-key|, which is redacted in the command output for
123+ security purposes, and project ID for an {{service}} deployment.
129124
130125 .. code-block:: sh
131126 :copyable: false
132127
133- [myMongoDB]
134- private_api_key = "abcdef"
135- public_api_key = "d5199648-abcd-1234-efgh-3ed4396a3096"
136- project_id = "7ehf04abc10defb66c7d1234c"
137- service = "{{serviceName}}"
128+ private_api_key = redacted
129+ public_api_key = redacted
130+ project_id = 7ehf04abc10defb66c7d1234c
131+ service = {{serviceName}}
132+
138133
139134 ...
0 commit comments