Skip to content

forest1206/contentful_management_scripts

Repository files navigation

Contentful space management script

🧐 What's inside?

  • Retrieve all contentTypes of space and save as json
  • Upload local dir to contentful media

Useful Links

🚀 Quick start

  1. Insall Dependencies.

    npm i
  2. Create a .env by copying .env.example and update with your space credentials.

    CONTENTFUL_SPACE_ID=
    CONTENTFUL_ACCESS_TOKEN=
    CONTENTFUL_MANAGEMENT_TOKEN=
    
  3. Start script.

    Get all space contentTypes and save as json

    npm run get-types
    

    Create a upload dir and copy files.
    Run command to upload files to space.

    npm run upload
    

About

Nodejs script for managing contentful types and media assets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published