---
title: "Upgrade the Sitecore Command Line Interface to version 4"
slug: "upgrade-the-sitecore-command-line-interface-to-version-4"
abstract: "How to upgrade the Sitecore Command Line Interface (CLI) to version 4.0.0 in PowerShell."
---
# Upgrade the Sitecore Command Line Interface to version 4

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

> [!note]
> To install a new CLI installation, see [Install Sitecore Command Line Interface](https://doc.sitecore.com/xp/en/developers/103/developer-tools/install-sitecore-command-line-interface.html "Install Sitecore Command Line Interface").

To upgrade an existing CLI installation from version 3.0.0 to version 4.0.0:

1. Update the [Sitecore Management Services](https://doc.sitecore.com/xp/en/developers/103/developer-tools/sitecore-management-services.html "Sitecore Management Services") module.
2. Update the CLI version to version 4.0.0:

    ```shell
    dotnet tool update sitecore.cli --version 4.0.0
    ```

3. Update the [publishing](https://doc.sitecore.com/xp/en/developers/103/developer-tools/publishing-plugin.html "Publishing plugin") and [serialization](https://doc.sitecore.com/xp/en/developers/103/developer-tools/serialization-plugin.html "Serialization plugin") plugins:

    > [!note]
    > If you update to version 4.1.0, you can use the new CLI command `dotnet sitecore plugin init` to [update *default* plugins to version 4.1.0](https://doc.sitecore.com/xp/en/developers/103/developer-tools/updating-cli-default-plugins-in-version-4-1-0.html "Updating CLI default plugins in version 4.1.0").

    ```shell
    dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Serialization --version 4.0.0
    dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Publishing --version 4.0.0
    ```

4. If you need to install the [indexing plugin](https://doc.sitecore.com/xp/en/developers/103/developer-tools/indexing-plugin.html "Indexing plugin"), then run the following command:

    ```shell
    dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.Indexing --version 4.0.0
    ```

5. If you need to install the [Items as Resources plugin](https://doc.sitecore.com/xp/en/developers/103/developer-tools/items-as-resources-plugin.html "Items as Resources plugin"), then run the following command:

    ```shell
    dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.ResourcePackage --version 4.0.0
    ```

6. Check the Sitecore CLI version using the following command:

    ```shell
    dotnet sitecore --version
    ```

    If your CLI is updated successfully, it returns `4.0.0`.

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

    ```shell
    dotnet sitecore init
    ```

8. Check the installed plugins using the following command:

    ```shell
    dotnet sitecore plugin list
    ```

    If your CLI plugins are updated successfully, it returns the following message:

    ```shell
    Sitecore.DevEx.Extensibility.Indexing v.4.0.0
    Sitecore.DevEx.Extensibility.Publishing v.4.0.0
    Sitecore.DevEx.Extensibility.ResourcePackage v.4.0.0
    Sitecore.DevEx.Extensibility.Serialization v.4.0.0
    ```