Saturday 22 June 2024

Sitecore XM Cloud Migration :: Content + Code!!

Have you worked on a sitecore XM Cloud yet? Are you preparing for your XM Cloud project? Is it a brand new or a rewrite of an existing website, if it s rewrite or a redesign, you probably need to plan content migration in addition to probably some code migration to speed up your project timeline, in this blog post will share some of tools that you can for your content migration & code migration. Interested… keep reading! 


How to handle Content Migration?

First part to handle is content, probably you would like to move some of your existing content, that includes data items and media items, you may think of sitecore packages, but is that efficient way to handle this case? You may answer no, so what other options you have? 

Here is where Sitecore make it easy for you, Sitecore recently released Sitecore XM CLoud Migration assistant tool, which has both CLI and UI versions, one thing to mention that this is working for Sitecore 10.1+, all what you need to do is to enter your current/old instance information, and your target XM Cloud instance information, and then just select what do you need to migration, with the migration assistant you can select out of two targets: 

  • On Premise sitecore instance 
  • Azure PaaS sitecore instance 
Also, with the migration assistant you can choose out of the following data to migrate: 
  • Content and Media 
  • Users 

Following are some screenshots from the UI version of the assistant, notice that you don’t need to fill all the fields for a migration source, depends on your instance mainly. 









How to migrate/speed up code files? 

The second part of your XM Cloud build is a code, if you are as example switching from a sitecore MVC solution code to a JSS headless front end app, using react or NextJS, you may think, ok this is a full rebuild from scratch, ok how about this tip that could save you up to 50%. Recently we have noticed the evolution of Generative AI, with ChatGpt leading and other AI Tools, ok, then why don’t we utilize this to speed up our new implementation?! 

A colleague of mine "Ahmed Okour" has recently publishing an open source tool that utilize AI to convert code files from one version to another, you can as example convert sxa scriban variant into a NextJS react component with a minute or two, forcing your coding style, best practices and guidelines, wow, this is really code and should be used to utilized by development teams, following where you can find the tool and some really cool video recording of how to use: 

Online Tool Link: 

Recording & Slides about how to accelerate you sitecore development with GenAI:
🔗 Video : https://lnkd.in/daKHWePv
🔗 Slides : https://lnkd.in/dNrcvEqZ 



A new update to add here, we have a version of the above tool where you can upload an image/screenshot of your component and the tool will generate the react/NextJs code for you, here is the URL and a sample screenshot: 




Hopefully the above will help you on your next XM Cloud project, if you have any comments or questions please do reach out on comments or through email.

No comments:

Post a Comment