Package Exports
- connectif-importer
- connectif-importer/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (connectif-importer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
connectif-importer
A CLI to import your contacts and/or products to Connectif Marketing Automation Platform.
Installation
Install the NodeJs runtime.
Now, from your favorite shell, install the CLI by typing the following command:
$ npm install -g connectif-importerUsage
The usage documentation can be found running the CLI with the help flag:
$ connectif-importer --helpOutput:
Usage: connectif-importer [options]
Command line interface to easily imports contacts or products csv file in Connectif Marketing Automation Platform.
Options:
-V, --version output the version number
-a, --apiKey <apiKey> api key
-d, --delimiter <delimiter> csv delimiter (default: ",")
-t, --type <type> import type (contacts, products or coupons)
-u, --updateOnlyEmptyFields update only existing fields (default: false)
-o, --overrideExisting override contacts if existing (default: true)
-c, --couponSetId <couponSetId> coupon set identifier to import coupons into. Required when import type is coupons (default: "")
-f, --filePath <filePath> csv file path
-i, --interval <interval> interval in milliseconds to check for import progress (default: 2000)
-h, --help display help for commandDocker
In case you want to run the CLI using docker you can with the following commands:
The below will print the version of the CLI:
docker run --rm francescorivola/connectif-importer:latestThe below will run the CLI with the given options:
docker run --rm -v $(pwd)/file.csv:/home/node/file.csv francescorivola/connectif-importer:latest \
--filePath=file.csv \
--type=contacts \
--apiKey=$CONNECTIF_API_KEYLicense
MIT