utility module for copying various aspects of shopify sites from a source site to duplicate (sink) site
this module is a collection of other shopify-*-cp
modules.
each method has the same api of cp[method](source, sink)
the return value of each method is a stream response from shopify
var cp = require('shopify-cp')
// use every method (copy everything we can right now)
Object.keys(cp).forEach(function (api) {
cp[api](source, sink).pipe(process.stdout)
})
// or use individual methods
cp.pages(source, sink).pipe(process.stdout)
cp.products(source, sink).pipe(process.stdout)
var cp = require('shopify-cp')
cp.pages(source, sink)
cp.products(source, sink)
pull request welcome to add more api methods! :)
SOURCE [string]: 'https://APIKey:Password@SOURCE.myshopify.com'
SINK [string]: 'https://APIKey:Password@SINK.myshopify.com'
replace {APIKey, Password, SOURCE, SINK} with actual values from your shopify admin panel
With npm installed, run
$ npm install shopify-cp
MIT