1. Sitecore Command Line Interface

Sitecore Command Line Interface reference

Version:

As the name suggests, Sitecore Command Line Interface (CLI) is a command-line tool named sitecore, and you add subcommands and options to accomplish different tasks.

To discover additional options for each of the commands listed in the following table, you add the --help option at the end. For example, dotnet sitecore login --help or dotnet sitecore ser package create --help.

SubcommandVersionsDescription
index4.0 or laterAutomates indexing operations. Install the indexing plugin to access this command.

For more information, see The CLI index command.
initAllInitializes a project configuration in the current folder.

For more information, see Install Sitecore Command Line Interface.
itemres4.0 or laterCreates an item package in a resource file with configurable options. Install the Items as Resources plugin to access this command.

For more information, see The CLI itemres command.
loginAllLogs in to a Sitecore instance.

For more information, see Log in to a Sitecore instance with Sitecore Command Line Interface.
plugin3.0 or laterManages plugins for the CLI that contain additional commands.

For more information, see The CLI plugin command and Extend the Command Line Interface with NuGet.
publishAllPublishes all content from the Master database to the publishing target. Install the publishing plugin to access this command.

For more information, see The CLI publish command.
ser, serializationAllHandles the serialization of items. Install the serialization plugin to access this command.

For more information, see The CLI serialization command.
connect5.0 or laterConnect your environment to a different existing environment and use its login information.

For more information, see The CLI connect command.
cloud5.0 or laterAllows you to interact with .

For more information, see The CLI cloud command.
edge5.1.25 or laterHelps you manage Experience Edge API keys.

For more information, see The CLI Edge command.
dbcleanup5.0 or laterPerforms database cleanup according to the provided tasks.

For more information, see The CLI dbcleanup command.
environment5.2 or laterHelps you work with environment configurations.

For more information, see The CLI environment command.
If you have suggestions for improving this article, let us know!