This is just an example of how I would create a CLI utility to import customers from a stream of JSON documents representing customers.
npm install -g lpinca/customer-import
$ customer-import [options] [<file>]
Options
-c, --concurrency How many customers should be imported in parallel (20)
-p, --path The path used to match the customers (customers.*)
Examples
$ customer-import customers.json
$ customer-import < customers.json
$ cat customers.json | customer-import
- Better error handling