Download a shopify site in a csv format that the shopify importer understands
brew install kishaningithub/tap/shopify-csv-download# All unix environments with curl
curl -sfL https://raw.githubusercontent.com/kishaningithub/shopify-csv-download/master/install.sh | sudo sh -s -- -b /usr/local/bin
# In alpine linux (as it does not come with curl by default)
wget -O - -q https://raw.githubusercontent.com/kishaningithub/shopify-csv-download/master/install.sh | sudo sh -s -- -b /usr/local/binRetrieving all publicly exposed products
shopify-csv-download https://shopify-site.com > shopify-site-products.csvpackage main
import (
	"log"
	"net/url"
	"os"
	"github.com/kishaningithub/shopify-csv-download/pkg/products"
)
func main() {
	siteUrl, err := url.Parse("https://shopify-site.com")
	if err != nil {
		log.Println(err)
		return
	}
	err = products.SaveAsImportableCSV(*siteUrl, os.Stdout)
	if err != nil {
		log.Println(err)
		return
	}
}PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2021 Kishan B