Skip to content

Commit cb6e641

Browse files
authored
DOCSP-30813 Add buildInfo() Command and Binary Flag (#282)
* DOCSP-30813 Add buildInfo() Command and Binary Flag * * * * * * * * * * * * * * * * * * * * * IR 1 * * * * * indents * *
1 parent c78b040 commit cb6e641

File tree

4 files changed

+69
-4
lines changed

4 files changed

+69
-4
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

source/reference/methods.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,12 @@ Native Methods
848848

849849
- Description
850850

851+
* - .. _mongosh-native-method-buildInfo():
852+
853+
``buildInfo()``
854+
855+
- .. include:: /includes/examples/ex-build-info-command.rst
856+
851857
* - .. _mongosh-native-method-cd:
852858

853859
``cd()``

source/reference/options.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Options
1010
:depth: 2
1111
:class: singlecol
1212

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|.
1515

1616
General Options
1717
---------------
@@ -20,8 +20,12 @@ General Options
2020

2121
.. option:: --build-info
2222

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
2529

2630
.. option:: --eval <javascript>
2731

0 commit comments

Comments
 (0)