Upgrade the Sitecore Command Line Interface to version 4
Sitecore Command Line Interface (CLI) is a tool that you install in PowerShell.
To install a new CLI installation, see Install Sitecore Command Line Interface.
To upgrade an existing CLI installation from version 3.0.0 to version 4.0.0:
-
Update the Sitecore Management Services module.
-
Update the CLI version to version 4.0.0:
-
Update the publishing and serialization plugins:
NoteIf you update to version 4.1.0, you can use the new CLI command
dotnet sitecore plugin initto update default plugins to version 4.1.0. -
If you need to install the indexing plugin, then run the following command:
-
If you need to install the Items as Resources plugin, then run the following command:
-
Check the Sitecore CLI version using the following command:
If your CLI is updated successfully, it returns
4.0.0. -
To update the JSON schema, run the following command in your project folder:
-
Check the installed plugins using the following command:
If your CLI plugins are updated successfully, it returns the following message: