click the Info button on the top right corner and copy the ENTRY ID value. Next, go to Settings > API > Content management tokens and create a. Create an account at and select Create an empty space. The export tool will run and produce a JSON file. In your Contentful dashboard go to Settings > General Settings and copy the Space ID. Now you can generate the Contentful export: $ contentful space export -space-id= Copy the Space ID and paste in the above. Next you'll need to authenticate the CLI app with your account: $ contentful loginĪfter opening your browser you'll be prompted to login to Contentful then you'll be provided with a token:įinally, copy the token and paste it into the contentful login prompt in your console. Adding Contentful as Remote Schema In Contentful dashboard, click on Settings. The ContentfulSpaceAPI namespace defines the methods at the Space level which allow you to create and get entries, assets, content types and other possible. There is 1 other project in the npm registry using contentful-space-sync. Start using contentful-space-sync in your project by running npm i contentful-space-sync. To install the contentful cli you can use homebrew, NPM or yarn: # homebrew After setting up a new space in Contentful, I create the content type Global Copy, which references several Component Copies. Latest version: 4.1.3, last published: 6 years ago. Contentful has a full walkthrough on installing the CLI here and here, and a walkthrough on exporting your data here. Now to export your data from Contentful! The first thing you'll need to do is export data using the contentful-cli. ![]() ![]() Using the Cosmic Contentful Importer to transfer your data from Contentful is extremely easy and only takes a few minutes! For a walkthrough of how I built the Contentful Importer check out my other article, Creating the Cosmic Contentful Importer.įirst head to Contentful Importer Extension and click the "Select Extension" button:įrom there select the bucket you would like to add the extension to.Īfter selecting the bucket you will see the Contentful Importer extension in the left sidebar:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |