Install Sitecore Command Line Interface
Sitecore Command Line Interface (CLI) is a tool you install in a terminal.
To upgrade an existing CLI installation, see Upgrade Sitecore Command Line Interface.
You can install Sitecore CLI as a local tool for individual projects or a global tool for all projects.
We do not recommend installing Sitecore CLI as a global tool. Different Sitecore instances might need different versions of the Sitecore CLI.
You must have .NET Core installed on your workstation before installing the Sitecore CLI. If you do not have the required version of .NET Core installed, you get the following message:
To install Sitecore CLI as a local project tool:
-
If you have not already done so, install Sitecore Management Services.
-
Open a terminal with administrator privileges.
-
Run the following commands to install Sitecore CLI:
NoteOther developers working on the same project only need to run
dotnet tool restoreto install Sitecore CLI.To install the CLI globally, use the
-goption when running theinstallcommand (not recommended).After the installation has been completed successfully, you will get the following message:
NoteThe version displayed in the terminal is the latest official release available.
-
To initialize your new project, run the following command in your project folder:
-
To verify that the Sitecore CLI works, go to your project folder in a terminal and type
dotnet sitecore -h.If the Sitecore CLI is ready, you get the following message: