---
title: "Upgrade the Sitecore Command Line Interface to the latest version"
slug: "upgrade-the-sitecore-command-line-interface-to-the-latest-version"
abstract: "How to upgrade the Sitecore Command Line Interface (CLI) to the latest version in PowerShell."
---
# 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](https://doc.sitecore.com/sai/en/developers/sitecoreai/sitecore-command-line-interface/install-and-setup-sitecore-cli/install-sitecore-command-line-interface.html "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 7.0.24`.

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}
    ```