Installation help is here

In order to utilize Sitecore CLI for XM cloud follow the steps:

  • Go to root of xmcloud project folder
  • Execute
dotnet restore
  • Login into Deploy App
       dotnet sitecore cloud login
  • Connect to source environment from where you want to pull
dotnet sitecore cloud environment connect --environment-id <environment id>

you will get environment id from xm cloud deploy app.

Go to environment -> Environment Details   

  • Execute
dotnet sitecore ser pull -i  “Name space from *.module.json file”
  • Connect to target environment to push
dotnet sitecore cloud environment connect --environment-id <environment id>
  • Execute
dotnet sitecore ser push -i  “Name space from *.module.json file”

For more information on configurations
Part 2: Sitecore Content Serialization Configuration(Sitecore CLI) – Sitecore Practice

For more information on CLI commands for xmcloud
Sitecore Command Line Interface reference | Sitecore Documentation

3 responses to “Sitecore CLI Installation and Configuration Guide for XM Cloud”

  1. […] CLI for XM Cloud […]

    Like

Leave a comment

Quote of the week

“The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle.”