MONGOIMPORTJSON(1)

NAME

mongoimportjson - the Mongo import tool

SYNOPSIS

mongoimportjson [OPTIONS]

DESCRIPTION

mongoimportjson 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.

OPTIONS

--help show usage information

-h, --host HOST
server to connect to (default HOST=localhost)
-d, --db DATABASE
database to use
-c, --c COLLECTION
collection to use
--file FILE
file from which to import
--dbpath PATH
directly access mongod data files in this path, instead of connecting to a mongod instance
--idbefore
create id index before importing
--id create id index after importing (recommended)
--drop drop collection before importing

COPYRIGHT

Copyright 2007-2009 10gen

SEE ALSO

For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.

AUTHOR

Kristina Chodorow
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout