>_ linuxcommand.dev
Startseite mongoimport
Database

mongoimport

Importiert JSON-, CSV- oder TSV-Daten in MongoDB-Collections

Ubuntu CentOS Debian SUSE Fedora RHEL
Verifiziert: 2026-05-13
Syntax
$mongoimport [options] --collection <name> --file <path>
Optionen
--db
--collection
--file
--type
--headerline
--jsonArray
Beispiele
$mongoimport --db mydb --collection users --file users.json
$mongoimport --type csv --headerline --file users.csv --db mydb --collection users
$mongoimport --jsonArray --file data.json --db mydb --collection items
Typische Anwendungsfälle
?
Standardverwendung
mongoimport --help
Hinweis Ideal für Erstimporte und ETL-Schritte aus Flatfiles.
Export