1.1.0 • Published 9 years ago

lanetix-import-csv v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

lanetix-import-csv

Import csv files into lanetix.

Installation

npm install -g lanetix-import-csv

Usage

First you need to get a csv file which has a header row which consists of field names, and subsequent rows which contain valid values for thoses fields (or blank).

NB you must currently resolve your own dependencies (e.g., determine owner_id from owner name).

NB you must ensure that numbers are actually numbers (no , or $)

lanetix-import-csv <record-type> <file> <api-uri> <token>

Will read a csv from file, and rows into records, basing the field name off of the first row of the csv file. Records of type record-type are created at api- uri with token.

Options: -h, --help Show help -i Ignore missing fields (will continue import if a column header does not match any existing fields)