1. Install and setup Sitecore CLI

Upgrade the Sitecore Command Line Interface to the latest version

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 to the latest version:

  1. Update the CLI version:

    shell
    dotnet tool update sitecore.cli
    Note

    To update to a specific version, you can use the command with a --version flag, and provide the required version: dotnet tool update sitecore.cli --version 6.0.18.

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

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

      shell
      dotnet sitecore plugin init --overwrite
  3. Check your Sitecore CLI version using the following command:

    shell
    dotnet sitecore --version

    If your CLI was updated successfully, the command returns the number of the latest version.

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

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

    shell
    dotnet sitecore plugin list

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

    shell
    Sitecore.DevEx.Extensibility.Database v.{version}
    Sitecore.DevEx.Extensibility.Indexing v.{version}
    Sitecore.DevEx.Extensibility.Publishing v.{version}
    Sitecore.DevEx.Extensibility.ResourcePackage v.{version}
    Sitecore.DevEx.Extensibility.Serialization v.{version}
    Sitecore.DevEx.Extensibility.XMCloud v.{version}
If you have suggestions for improving this article, let us know!