javierrh2812 / csvToCtf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pre

  1. install contentful-cli (https://www.contentful.com/developers/docs/tutorials/cli/)
npm install -g contentful-cli
  1. authenticate
contentful login
  1. configure config/import.json

steps

  1. npm install (or yarn install)

  2. download csv file to inputs/data.csv

  3. convert csv to json contentType must be the contentType id

node clearData.js {contentType}
  1. finally, import data to contentful space
contentful space import --config configs/import.json

About


Languages

Language:JavaScript 100.0%