Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: r1.3.0
Fetching contributors…


Cannot retrieve contributors at this time

file 46 lines (45 sloc) 1.159 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
.\" Documentation for the MongoDB shell
.TH MONGOIMPORTJSON "1" "June 2009" "10gen" "Mongo Database"
mongoimportjson \- the Mongo import tool
\fBmongoimportjson [\fIOPTIONS\fR]\fR
is a tool to import JSON documents into MongoDB. This utility takes a single file that contains one JSON string per line and inserts it. A databaase and collection must be specified.
.B \-\-help
show usage information
.B \-h, \-\-host HOST
server to connect to (default HOST=localhost)
.B \-d, \-\-db DATABASE
database to use
.B \-c, \-\-c COLLECTION
collection to use
.B \-\-file FILE
file from which to import
.B \-\-dbpath PATH
directly access mongod data files in this path, instead of connecting to a mongod instance
.B \-\-idbefore
create id index before importing
.B \-\-id
create id index after importing (recommended)
.B \-\-drop
drop collection before importing
Copyright 2007\-2009 10gen
For more information, please refer to the MongoDB wiki, available at
Kristina Chodorow
Something went wrong with that request. Please try again.