Perform content migrations with Kontent.ai CLI
Content migration is different for every organization, yet the principle is always the same. You want to get data from one system to another.With all the headless benefits, you may undergo your last content migration right now. But since that joy alone won’t help you get it done, this course will guide you through the main steps of every content migration using the Kontent.ai CLI.
The building blocks of content migration
Whenever you want to migrate your content, you need to deal with three things:- Source – defines the data you want to migrate. For example, this can be content in an old CMS, CRM, spreadsheet, or even in a CSV file.
- Destination – defines where you want to put the source data. This is Kontent.ai.
- Adapter – transforms and maps the data between the source and the destination, and imports it to the destination. This is what Kontent.ai CLI helps with.
Explore the CLI migration samples
In the video, Jake Kula, our Presales Engineer, shows you how to use the migrations boilerplate for Kontent.ai CLI to run a series of content migrations. This approach works well for content migrations within an existing Kontent.ai project as well as for importing content from external resources such as databases, other CMSs, spreadsheets, or CSV files. You can also use the same approach to import and export content for your backups.
The boilerplate comes with migration scripts built around the example of making a content model change and updating the affected content items. You’ll see Jake go through these steps:
- Create a content type for blog posts
- Create a blog post content item.
- Create a content type for authors.
- Add a linked items element to the content type of articles.
- Perform content migration to extract the names of article authors, create a content item for each name, and link the content item in respective articles.
- Remove the text element for author names that are not needed anymore.
Create migration scripts that suit your use case
Sign in with your Kontent.ai credentials or sign up for free to unlock the full lesson, track your progress, and access exclusive expert insights and tips!