Skip to content

Creates a base set of migrations based on your Contentful content models.

Notifications You must be signed in to change notification settings

duncanheron/contentful-migration-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contentful migration/content export generator

Creates a base set of migrations based on your Contentful content models. A single migration file will be added to the /migrations folder for each content model.

This is then easily importable into any other Contentful space or can be used as a base to be included in development workflow for new features if you haven't been creating migrations during the initial phases of your build.

Content exporting has been added, to pull all your environment entries including setup like webhook configuration and roles.

Create a .env file in the project root and provide your Contentful environment, space id and access token.

  • space_env = 'master'
  • space_id = 'YOUR SPACE ID'
  • access_token = 'YOUR CDA TOKEN'

Run yarn install followed by yarn migrations-generate.

About

Creates a base set of migrations based on your Contentful content models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published