This script saves metaobjects whose names and definitions are configured in a configuration file to a CSV file that can be used by the Matrixify app.
It requires:
- a Shopify Plus store
- a configured app whose token you know
- Node JS v14+ on your machine
- create your project directory and drop the repository files there using your preferred method, then switch to this directory
npm install axios csv-writer dotenv- Copy
.env.exampleto.envand configure :SHOPIFY_DOMAIN=your-shop.myshopify.com SHOPIFY_ACCESS_TOKEN=shpat_xxx SHOPIFY_API_VERSION=2024-04 - Adjust
config.jsonas you need (type, order, objects). - Ensure your private/custom app has scopes:
read_productsread_metafieldsread_metaobjectsread_pages
node index.jsou
npm startThe output of the CSV will be generated under output/metaobjects.csv.