Using VtrinCmd as the Import Tool

This document contains examples for importing data with VtrinCmd.

For more information about connecting to a data source, connection types, credentials, and command parameters, see the VtrinCmd Tool documentation.

Parameters

CommandDescription
--connectionstringDatabase Connection
--importjsonImport JSON data from a file(s). Multiple files separated with |
--importjsonfolderImport data from .json files in a folder recursively. Folder path as parameter.

Import a single JSON file

VtrinCmd --connectionstring /path/to/your/data --importjson "path-to-file.json"

Importing Multiple Individual Files

To import multiple JSON files in a single command, use the | separator.

VtrinCmd --connectionstring /path/to/your/data --importjson "path1|path2"

Import a Folder

To import all JSON files from a folder and its subfolders.

VtrinCmd --connectionstring /path/to/your/data --importjsonfolder "path-to-folder"

Note: --importjson can also be given a folder path. In this case, VtrinCmd will ask for confirmation (y/N) before importing, to prevent accidental bulk imports.


Further Reading:

Learn more about VtrinCmd tool


Did this page help you?