summaryrefslogtreecommitdiff
path: root/debian/manpages/mongoimport.1
blob: b99408cb2d8222b711e12ec8f52e9f34627dd8bb (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.37.1.
.TH MONGOIMPORT "1" "January 2010" "10gen" "Mongo Database"
.SH "NAME"
mongoimport \- the Mongo import tool
.SH "SYNOPSIS"
\fBmongoimport [\fIOPTIONS\fR]\fR
.SH "DESCRIPTION"
.PP
\fBmongoimport\fR
is a tool to import a MongoDB collection from JSON, CSV, or TSV. The query can be filtered or a list of fields to input can be given.
.\".SH "EXAMPLES"
.\".TP
.\".B mongoimport -d test -c test1 --csv -f "name,num"
.\"import documents from test.test1 in CSV format
.SS "OPTIONS"
.TP
\fB\-\-help\fR
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 (some commands)
.TP
.B \-\-dbpath PATH
directly access mongod data files in this path,
instead of connecting to a mongod instance
.TP
.B \-v, \-\-verbose
be more verbose (include multiple times for more
verbosity e.g. \fB\-vvvvv\fR)
.TP
.B \-f, \-\-fields NAMES
comma separated list of field names e.g. \fB\-f\fR name,age
.TP
.B \-\-fieldFile FILE
file with fields names \- 1 per line
.TP
.B \-\-jsonArray
load a json array, not one item per line. Currently limited to 4MB.
.TP
.B \-\-ignoreBlanks
if given, empty fields in csv and tsv will be ignored
.TP
.B \-\-type TYPE
type of file to import.  default: json (json,csv,tsv)
.TP
.B \-\-file FILE
file to import from; if not specified stdin is used
.TP
.B \-\-drop
drop collection first
.TP
.B \-\-headerline
CSV,TSV only \- use first line as headers
.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