Pages

25 April, 2025

XM to XM Cloud Migration tool - 2.1 - Using Command Line (CLI)

XM to XM Cloud Migration tool has two ways to use. GUI and CLI. In this blog post, we will go through CLI. 

CLI uses the same appsettings.json file which was created using GUI or it can be manually created for CLI usage. 

Content Command


Executing .\XMMigration.exe content will use the existing appsettings config and migrate the content.



Similarly, CLI can be used to migrate the users. In the below section, all the available commands and sub commands are listed.

Show help and usage information

 -?, -h, --help

Users Command


Retrieve domains from source instance. 
--retrieve-domains

Migrate users by passing domains (comma separated).
--migrate-userdomains <migrate-userdomains>

Username to Sitecore CM login of source instance.
--source-username <source-username>

Password to Sitecore CM login of source instance.
--source-password <source-password>

Show help and usage information.
-?, -h, --help


As a sample, to retrieve all the users under Sitecore domain, 

.\XMMigration.exe users --migrate-userdomains sitecore

Happy Migrating!!!

No comments:

Post a Comment

blockquote { margin: 0; } blockquote p { padding: 15px; background: #eee; border-radius: 5px; } blockquote p::before { content: '\201C'; } blockquote p::after { content: '\201D'; }