Skip to content

Commit c66ff95

Browse files
authored
(DOCSP-17775) Adds missing mcli variables for output type and mongosh path (#599)
1 parent e777ca3 commit c66ff95

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

source/configure/environment-variables.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,33 @@ The {+mcli+} supports the following environment variables:
8080
* - ``ops-manager``
8181
- |mms-full|
8282

83+
* - ``MCLI_OUTPUT``
84+
- Sets the output fields and format. Valid values are:
85+
86+
.. list-table::
87+
:header-rows: 1
88+
:widths: 40 60
89+
90+
* - Value
91+
- Output Format
92+
93+
* - | Empty
94+
| *default*
95+
- Human-readable output that includes all fields that {+mcli+} returns.
96+
97+
* - ``json``
98+
- JSON output that includes all fields that {+mcli+} returns.
99+
100+
* - ``json-path``
101+
- JSON output that includes the :doc:`fields that you specify </reference/json-path>`.
102+
103+
* - ``go-template``
104+
- Custom-formatted output that includes the :doc:`fields
105+
that you specify in a Go template </configure/go-template-output>`.
106+
107+
* - ``MCLI_MONGOSH_PATH``
108+
- The full path on your local system to the |mongo| shell.
109+
83110
* - | ``MCLI_OPS_MANAGER_CA_CERTIFICATE``
84111
| *Ops Manager only*
85112
- If applicable, the full path on your local

0 commit comments

Comments
 (0)