Skip to content

Commit 0897d2b

Browse files
author
Siddharth Singh
committed
Fix --output parameter in mongoexport to --out
mongoexport doesn't have any --output parameter.
1 parent 960f1a1 commit 0897d2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/reference/mongoexport.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ format into a file located at ``/opt/backups/contacts.csv``.
178178

179179
.. code-block:: sh
180180

181-
mongoexport --db users --collection contacts --csv --output /opt/backups/contacts.csv
181+
mongoexport --db users --collection contacts --csv --out /opt/backups/contacts.csv
182182

183183
The next example creates an export of the collection ``contacts``
184184
from the MongoDB instance running on the localhost port number ``27017``,
@@ -187,7 +187,7 @@ with journaling explicitly enabled. This writes the export to the
187187

188188
.. code-block:: sh
189189

190-
mongoexport --db sales --collection contacts --output contacts.json --journal
190+
mongoexport --db sales --collection contacts --out contacts.json --journal
191191

192192
The following example exports the collection ``contacts`` from the
193193
``sales`` database located in the MongoDB data files located at
@@ -212,4 +212,4 @@ located on the host ``mongodb1.example.net`` running on port
212212

213213
.. code-block:: sh
214214

215-
mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --output mdb1-examplenet.json
215+
mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --out mdb1-examplenet.json

0 commit comments

Comments
 (0)