File tree Expand file tree Collapse file tree 4 files changed +69
-4
lines changed Expand file tree Collapse file tree 4 files changed +69
-4
lines changed Original file line number Diff line number Diff line change
1
+ Returns the following JSON-formatted document that describes
2
+ your ``mongosh `` build and driver dependencies:
3
+
4
+ .. code-block :: javascript
5
+ : copyable: false
6
+
7
+ {
8
+ version: ' 1.10.1' ,
9
+ distributionKind: ' packaged' ,
10
+ buildArch: ' x64' ,
11
+ buildPlatform: ' linux' ,
12
+ buildTarget: ' unknown' ,
13
+ buildTime: ' 2023-06-21T09:49:37.225Z' ,
14
+ gitVersion: ' 05ad91b4dd40382a13f27abe1ae8c3f9f52a38f7' ,
15
+ nodeVersion: ' v16.20.1' ,
16
+ opensslVersion: ' 3.1.1' ,
17
+ sharedOpenssl: true ,
18
+ runtimeArch: ' x64' ,
19
+ runtimePlatform: ' darwin' ,
20
+ deps: {
21
+ nodeDriverVersion: ' 5.6.0' ,
22
+ libmongocryptVersion: undefined ,
23
+ libmongocryptNodeBindingsVersion: undefined
24
+ }
25
+ }
Original file line number Diff line number Diff line change
1
+ You can check the build information and driver dependencies of your
2
+ :binary: `~bin.mongosh ` binary by running the following command
3
+ from your terminal:
4
+
5
+ .. code-block :: sh
6
+
7
+ mongosh --build-info
8
+
9
+ This command returns the following JSON-formatted document:
10
+
11
+ .. code-block :: javascript
12
+ : copyable: false
13
+
14
+ {
15
+ version: ' 1.10.1' ,
16
+ distributionKind: ' packaged' ,
17
+ buildArch: ' x64' ,
18
+ buildPlatform: ' linux' ,
19
+ buildTarget: ' unknown' ,
20
+ buildTime: ' 2023-06-21T09:49:37.225Z' ,
21
+ gitVersion: ' 05ad91b4dd40382a13f27abe1ae8c3f9f52a38f7' ,
22
+ nodeVersion: ' v16.20.1' ,
23
+ opensslVersion: ' 3.1.1' ,
24
+ sharedOpenssl: true ,
25
+ runtimeArch: ' x64' ,
26
+ runtimePlatform: ' darwin' ,
27
+ deps: {
28
+ nodeDriverVersion: ' 5.6.0'
29
+ }
30
+ }
Original file line number Diff line number Diff line change @@ -848,6 +848,12 @@ Native Methods
848
848
849
849
- Description
850
850
851
+ * - .. _mongosh-native-method-buildInfo():
852
+
853
+ ``buildInfo()``
854
+
855
+ - .. include:: /includes/examples/ex-build-info-command.rst
856
+
851
857
* - .. _mongosh-native-method-cd:
852
858
853
859
``cd()``
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ Options
10
10
:depth: 2
11
11
:class: singlecol
12
12
13
- Use the following options to control various aspects of your
14
- |mdb-shell| connection and behavior .
13
+ Use the following options to view and control various aspects of your
14
+ |mdb-shell|.
15
15
16
16
General Options
17
17
---------------
@@ -20,8 +20,12 @@ General Options
20
20
21
21
.. option:: --build-info
22
22
23
- Returns a JSON-formatted document with information about the
24
- :binary:`~bin.mongosh` build.
23
+ Returns a JSON-formatted document with information about
24
+ your :binary:`~bin.mongosh` build and driver dependencies.
25
+
26
+ **Example: View Build Information**
27
+
28
+ .. include:: /includes/examples/ex-build-info-flag.rst
25
29
26
30
.. option:: --eval <javascript>
27
31
You can’t perform that action at this time.
0 commit comments