All apps/mongoimport

mongoimport

mongoimport

Import data from a JSON, CSV, or TSV file into a MongoDB instance.

Runs as mongoimport|macOS, Linux, Windows|www.mongodb.com

Autocomplete

Fig spec, with what the manifest adds · 43 options
Published once and never changed; check the digest before caching
sha256
5f59648b18732572721b5cf1972d37beed89a7b5febfd76fe3605b7d86f7b383
Size
11174 bytes
OptionsOn mongoimport itself
--help
Returns information on the options and use of mongoimport
--verbose-v
Increases the amount of internal reporting returned on standard output or in log files
--quiet
Runs mongoimport in a quiet mode that attempts to limit the amount of output
--version
Returns the mongoimport release number
--config
Specifies the full path to a YAML configuration file containing sensitive values for the following options to mongoimport <filename>
--uri
Specifies the resolvable URI connection string of the MongoDB deployment <connectionString>
--host-h
Specifies the resolvable hostname of the MongoDB deployment <hostname:port>
--port
Specifies the TCP port on which the MongoDB instance listens for client connections <port>
--ssl
Enables connection to a mongod or mongos that has TLS/SSL support enabled
--sslCAFile
Specifies the .pem file that contains the root certificate chain from the Certificate Authority <filename>
--sslPEMKeyFile
Specifies the .pem file that contains both the TLS/SSL certificate and key <filename>
--sslPEMKeyPassword
Specifies the password to de-crypt the certificate-key file (i.e. --sslPEMKeyFile) <value>
--sslCRLFile
Specifies the .pem file that contains the Certificate Revocation List <filename>
--sslAllowInvalidCertificates
Bypasses the validation checks for server certificates and allows the use of invalid certificates
--sslAllowInvalidHostnames
Disables the validation of the hostnames in TLS/SSL certificates
--username-u
Specifies a username with which to authenticate to a MongoDB database that uses authentication <username>
--password-p
Specifies a password with which to authenticate to a MongoDB database that uses authentication <password>
--awsSessionToken
Specifies the session token for MONGODB-AWS authentication mechanism <AWS Session Token>
--authenticationDatabase
Specifies the authentication database where the specified --username has been created <dbname>
--authenticationMechanism
Specifies the authentication mechanism the mongoimport instance uses to authenticate to the mongod or mongos <name>
--gssapiServiceName
Specify the name of the service using GSSAPI/Kerberos. This option is available only in MongoDB Enterprise <serviceName>
--gssapiHostName
Specify the hostname of the service using GSSAPI/Kerberos. This option is available only in MongoDB Enterprise <hostname>
--db-d
Specifies the name of the database on which to run the mongoimport <database>
--collection-c
Specifies the name of the collection to import <collection>
--fields-f
Specify a comma separated list of field names when importing CSV or TSV files that do not have field names in the first (i.e. header) line of the file <field1,field2,...>
--fieldFile
Specify a file containing a comma separated list of field names when importing CSV or TSV files that do not have field names in the first (i.e. header) line of the file <filename>
--ignoreBlanks
Ignores empty fields in CSV and TSV exports
--type
Specifies the file type to import <type>
--file
Specifies the location and name of a file containing the data to import <filename>
--drop
Modifies the import process so that the target instance drops the collection before importing the data from the input
--headerline
Treats the first line of the input file as a header line
--useArrayIndexFields
Interpret natural numbers in fields as array indexes when importing CSV or TSV files
--mode
Specifies how the import process should handle existing documents in the database that match documents in the import file <mode>
--upsertFields
Specifies a list of fields for the query portion of the import process <field1,field2,...>
--stopOnError
Forces mongoimport to halt the insert operation at the first error rather than continuing the operation despite errors
jsonArray
Accepts the import of data expressed with multiple MongoDB documents within a single JSON array
--legacy
Indicates that the import data is in Extended JSON v1 format
--maintainInsertionOrder
Maintains the order of documents in the import file when inserting documents into the database
--numInsertionWorkers
Specifies the number of insertion workers to run concurrently <number>
--writeConcern
Specifies the write concern for each write operation that mongoimport performs <document>
--bypassDocumentValidation
Enables mongoimport to bypass document validation during the operation
--columnsHaveTypes
Instructs mongoimport that the field list specified in --fields, --fieldFile, or --headerline specifies the types of each field
--parseGrace
Specifies how mongoimport handles type coercion failures when importing CSV or TSV files with --columnsHaveTypes <grace>