File tree Expand file tree Collapse file tree 2 files changed +34
-3
lines changed Expand file tree Collapse file tree 2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,37 @@ description: |
51
51
optional : true
52
52
---
53
53
program : bsondump
54
+ name : bsonFile
55
+ directive : option
56
+ description : |
57
+ .. versionadded:: 3.4
58
+
59
+ Specifies a path to a :term:`BSON file` to dump to JSON. {{role}} is
60
+ an alternative to the positional :option:`<bsonFilename>` option.
61
+
62
+ By default, {{program}} reads from standard input.
63
+ optional : true
64
+ ---
65
+ program : bsondump
54
66
name : <bsonFilename>
55
67
directive : option
56
68
description : |
57
69
The final argument to {{program}} is a document containing
58
70
:term:`BSON`. This data is typically generated by
59
71
{{program}} or by MongoDB in a :term:`rollback` operation.
72
+ optional : true
73
+ ---
74
+ program : bsondump
75
+ name : outFile
76
+ directive : option
77
+ description : |
78
+ .. versionadded:: 3.4
79
+
80
+ Specifies the path of the file to which {{program}} should write
81
+ its output JSON data.
82
+
83
+ By default, {{program}} writes to standard output.
84
+ optional : true
60
85
---
61
86
program : bsondump
62
87
name : pretty
Original file line number Diff line number Diff line change @@ -54,18 +54,24 @@ Options
54
54
55
55
.. include:: /includes/option/option-bsondump-pretty.rst
56
56
57
+ .. include:: /includes/option/option-bsondump-bsonFile.rst
58
+
57
59
.. include:: /includes/option/option-bsondump-<bsonFilename>.rst
58
60
61
+ .. include:: /includes/option/option-bsondump-outFile.rst
62
+
59
63
Use
60
64
---
61
65
66
+ .. versionchanged:: 3.4
67
+
62
68
By default, :program:`bsondump` outputs data to standard output. To
63
- create corresponding :term:`JSON` files, you will need to use the
64
- shell redirect. See the following command :
69
+ create corresponding :term:`JSON` files, you can use the
70
+ :option:`--outFile` option :
65
71
66
72
.. code-block:: sh
67
73
68
- bsondump collection.bson > collection.json
74
+ bsondump --outFile collection.json collection.bson
69
75
70
76
Use the following command (at the system shell) to produce debugging
71
77
output for a :term:`BSON` file:
You can’t perform that action at this time.
0 commit comments