Skip to content

mikenewbuild/shopify-csv-export

Repository files navigation

Shopify CSV Exports

A simple starter script to quickly export configurable CSV files from Shopify stores.

Setup

To set up copy the env.example file to .env and fill in the values. You'll need to add the private app credentials you created in Shopify and make sure you have the privilege to read the resources you need.

$ cp .env.example .env

Install dependencies

$ npm install

Usage

To export resources, modify export-resources.js to your needs then run:

$ npm run export

To export prices, modify export-prices.js to your needs then run:

$ npm run prices

Resources

You can currently specify a resource and optionally a sub-resource if you want to flatten the data.

Prices

You can export a mutated set of prices along with the original price data (eg. with VAT added) and optionally partition it based on a boolean (eg. published).

Migrate Blog

You can migrate the contents of one Shopify blog to another blog on a different shop. The contents will be stored in a json file, and a version which you can mutate will be saved and read back in to populate the new blog. As a safety precaution, there is a dryRun variable set to true so that you can review the exported files before you run the migration. To run the migration set dryRun to false.

$ npm run migrate-blog

To do

  • Add tests

About

Quickly export Shopify data to a CSV.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors