Upgrade the Sitecore Command Line Interface to the latest version
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 to the latest version:
-
Update the CLI version:
shellNoteTo update to a specific version, you can use the command with a
--versionflag, and provide the required version:dotnet tool update sitecore.cli --version 6.0.18. -
Make sure all plugins are updated to the latest versions.
-
To update the default plugins, run the following command:
shell
-
-
Check your Sitecore CLI version using the following command:
shellIf your CLI was updated successfully, the command returns the number of the latest version.
-
To update the JSON schema, run the following command in your project folder:
shell -
Check the installed plugins using the following command:
shellIf your CLI plugins were updated successfully, the command returns the following:
shell