Upgrade the Sitecore Command Line Interface to version 6

Sitecore Command Line Interface (CLI) is a tool that you install in PowerShell.

Note

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:

  1. Update the CLI version to version 6.0.18:

    RequestResponse
    dotnet tool update sitecore.cli --version 6.0.18
    Note

    To update to the latest available version, you can use the command without providing a version: dotnet tool update sitecore.cli.

  2. Make sure all plugins are updated to the latest versions.

    • To update the default plugins, run the following command:

      RequestResponse
      dotnet sitecore plugin init --overwrite
    • If you want to install the XM Cloud plugin, run the following command:

      RequestResponse
      dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloud
      XM Cloud is now SitecoreAI

      Some code examples, images, and UI labels may still use XM Cloud while engineering assets are being updated.

  3. Check your Sitecore CLI version using the following command:

    RequestResponse
    dotnet sitecore --version

    If your CLI was updated successfully, the command returns 6.0.18.

  4. To update the JSON schema, run the following command in your project folder:

    RequestResponse
    dotnet sitecore init
  5. Check the installed plugins using the following command:

    RequestResponse
    dotnet sitecore plugin list
    

    If your CLI plugins were updated successfully, the command returns the following:

    RequestResponse
    Sitecore.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
    

Do you have some feedback for us?

If you have suggestions for improving this article,