JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q44749F
  • License MIT

Command line interface to easily imports contacts or products csv file in Connectif Marketing Automation Platform.

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

Npm Version Actions Status CodeFactor codecov Dependabot Status JavaScript Style Guide Docker Pulls

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-importer

Usage

The usage documentation can be found running the CLI with the help flag:

$ connectif-importer --help

Output:

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 or products)
  -u, --updateOnlyEmptyFields  update only existing fields (default: false)
  -o, --overrideExisting       override contacts if existing (default: true)
  -f, --filePath <filePath>    csv file path
  -i, --interval <interval>    interval in milliseconds to check for import progress (default: 2000)
  -h, --help                   display help for command

Docker

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:latest

The 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_KEY

License

MIT