Here we post product updates and publish articles on topics such as digital publishing, content strategy, and software development.
Be sure also to check out our Product Changelog for more news!
Do you like DatoCMS but you created your project with Contentful? No problem, we released contentful-to-datocms, a Node.js-based CLI tool that copies all content from a Contentful space to a DatoCMS site.
To copy your Contentful space to DatoCMS, you will need the following information:
You can create one under Space settings > API keys > Content management tokens and then clicking the Generate personal token button:
You can find it under Settings > API tokens:
Install the tool using NPM:
npm install -g contentful-to-datocms
Run the following in the console:
contentful-to-datocms copy --contentfulSpaceId=<YOUR_CONTENTFUL_SPACE_ID> --contentfulToken=<YOUR_CONTENTFUL_API_TOKEN> --datoCmsToken=<YOUR_DATO_API_TOKEN>
Although highly compatible, there are some minor differences between the types of fields that Contentful offers compared to DatoCMS, so the tool will follow the following migration rules: