Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: r1.3.0
Fetching contributors…

Octocat-spinner-32-eaf2f5

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"
.SH "NAME"
mongoimportjson \- the Mongo import tool
.SH "SYNOPSIS"
\fBmongoimportjson [\fIOPTIONS\fR]\fR
.SH "DESCRIPTION"
.PP
\fBmongoimportjson\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.
.SH "OPTIONS"
.TP
.B \-\-help
show usage information
.TP
.B \-h, \-\-host HOST
server to connect to (default HOST=localhost)
.TP
.B \-d, \-\-db DATABASE
database to use
.TP
.B \-c, \-\-c COLLECTION
collection to use
.TP
.B \-\-file FILE
file from which to import
.TP
.B \-\-dbpath PATH
directly access mongod data files in this path, instead of connecting to a mongod instance
.TP
.B \-\-idbefore
create id index before importing
.TP
.B \-\-id
create id index after importing (recommended)
.TP
.B \-\-drop
drop collection before importing
.SH "COPYRIGHT"
.PP
Copyright 2007\-2009 10gen
.SH "SEE ALSO"
For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.
.SH "AUTHOR"
Kristina Chodorow
Something went wrong with that request. Please try again.