27 September, 2023
Creating an XM Cloud Project from an Existing Sitecore Solution in Bitbucket
22 September, 2023
Using the Deploy (REST) API to Manage XM Cloud Projects and Environments
Even, these credentials can be created using the deploy API but you will need the authorization token which is being used to login to the Sitecore Cloud portal. In case if your organization is using your own SSO for Sitecore Cloud portal, you can leverage the Client ID and Client Secret and generate the auth token and pass it to /api/clients/vi/deploy API and you can generate the credential.
| Used cloud portal auth token and created the XM Cloud Organization credential |
We can see the same credential in the Deploy portal.
11 September, 2023
XM Cloud: Sync Content between Environments
To sync content between XM Cloud Environments, SCS (Sitecore Content Serialization) is the preferred way when compared to old way of moving content using Sitecore Content Packages. In this article, we will move content from one environment to another by an easy way.
Scenario:
Two environments: DEV and PROD
Content Sync: Copy from PROD to DEV or Copy from PROD to Local
Content to be copied:
- /sitecore/content/samplesite/samplesite/Home
- /sitecore/content/samplesite/samplesite/Data
Sitecore Content Serialization (SCS) is a system for serializing, sharing, and deploying content items, as well as keeping them in version control.
| Ref: https://doc.sitecore.com/xmc/en/developers/xm-cloud/sitecore-content-serialization.html |
The flow is to connect to PROD, DEV and Local (if planning to sync it to local) environment using CLI connect command and then use CLI serialization command to pull from source Environment to target Environment.
Step 1: Connect to Environments
Before we connect to XM Cloud Environments, it is important that Sitecore CLI with plugins are installed. XM Cloud Environment IDs are needed to connect. Use CLI connect command with --allow-write flag to enable read/write access for environments.
PROD ID: 1rg2Cn4Nz9HlMvJDoMlp0R
DEV ID: 5uQrDqtEeitxTlNdOCTmwM
Step 2: Add Serialization Module to Content Sync Purpose
In order to sync only a specific set of content, it is optional to create a separate serialization module json file. In our scenario, we are pulling only the pages and the data folder. Create a module json with the below includes.
Step 3: Pull Content from Source Environment
Using CLI Serialization command, pull the content by targeting only our content sync module.
