Pages

15 February, 2024

Sitecore XM Cloud CLI New Feature - Organization command

Sitecore updated the CLI with additional cloud command. 'organization'. This fits in along with other commands like login, logout, project, environment and deployment


Organization command has three sub commands which helps you to retrieve the organization information, health of the particular organization at that time and retrieve license file. 

In order to quickly update cloud plugin, you can just remove and add it by executing the following in terminal. 

# Remove XM Cloud Plugin
dotnet sitecore plugin remove -n Sitecore.DevEx.Extensibility.XMCloud
# Add XM Cloud Plugin with the latest version
dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloud

cloud organization info

This sub command helps you to retrieve the currently logged in Organization details. 

<xmcloud-nehem> dotnet sitecore cloud organization info --organization-id org_xxxxxxxxxxxxxxxx
Id : org_xxxxxxxxxxxxxxxx
Name : epam-xxxx
Region : eus
CreatedAt : 5/8/2023 11:45:50 PM
CreatedBy : Automation
Tier : Corporate

cloud organization health

This sub command helps you to display the status of the organization. You can view the health in Sitecore Deploy Portal --> System Health.

<xmcloud-nehem> dotnet sitecore cloud organization health --organization-id org_xxxxxxxxxxxxx
Organization resources health status: Healthy


cloud organization license

This sub command helps you to download the organization's license. This can be used for your local development. 

<xmcloud-nehem> dotnet sitecore cloud organization license --organization-id org_xxxxxxxxxxxxxxxx
Organization license has been saved to C:\Project\GitHub\xmcloud-nehem.
blockquote { margin: 0; } blockquote p { padding: 15px; background: #eee; border-radius: 5px; } blockquote p::before { content: '\201C'; } blockquote p::after { content: '\201D'; }