Upgrade the Sitecore Command Line Interface to version 6
Sitecore Command Line Interface (CLI) is a tool that you install in PowerShell.
If you do not have a previous installation of the CLI in your project, follow the steps to install Sitecore Command Line Interface instead.
To upgrade an existing CLI installation from version 5.0.0 to version 6.0.18:
-
Update the CLI version to version 6.0.18:
RequestResponsedotnet tool update sitecore.cli --version 6.0.18NoteTo update to the latest available version, you can use the command without providing a version:
dotnet tool update sitecore.cli. -
Make sure all plugins are updated to the latest versions.
-
To update the default plugins, run the following command:
RequestResponsedotnet sitecore plugin init --overwrite -
If you want to install the XM Cloud plugin, run the following command:
RequestResponsedotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloudXM Cloud is now SitecoreAISome code examples, images, and UI labels may still use XM Cloud while engineering assets are being updated.
-
-
Check your Sitecore CLI version using the following command:
RequestResponsedotnet sitecore --versionIf your CLI was updated successfully, the command returns
6.0.18. -
To update the JSON schema, run the following command in your project folder:
RequestResponsedotnet sitecore init -
Check the installed plugins using the following command:
RequestResponsedotnet sitecore plugin listIf your CLI plugins were updated successfully, the command returns the following:
RequestResponseSitecore.DevEx.Extensibility.Database v.6.0.18 Sitecore.DevEx.Extensibility.Indexing v.6.0.18 Sitecore.DevEx.Extensibility.Publishing v.6.0.18 Sitecore.DevEx.Extensibility.ResourcePackage v.6.0.18 Sitecore.DevEx.Extensibility.Serialization v.6.0.18