1. Sitecore Command Line Interface

Sitecore CLI command reference

This section is a reference for available Sitecore CLI commands. Use it to look up commands and their purpose. For step-by-step guidance, see the relevant workflow topics.

To view available options for any command, use the --help option. For example:

bash
dotnet sitecore login --help
dotnet sitecore ser package create --help

Some commands require additional CLI plugins. For more information, see the Plugins section.

Commands

This table provides a quick overview of available commands. For detailed usage, see the individual command topics.

SubcommandVersionsDescription
index4.0 or laterAutomates indexing operations.
initAllInitializes a project configuration in the current folder.
itemres4.0 or laterCreates an item package in a resource file with configurable options.
loginAllAuthenticates with a Sitecore instance.
plugin3.0 or laterManages CLI plugins.
publishAllPublishes content from the master database to the target environment.
ser, serializationAllPerforms serialization operations such as push, pull, and validation.
connect5.0 or laterLets you connect your environment to a different existing environment and use its login information.
cloud5.0 or laterInteracts with SitecoreAI environments and resources.
edge5.1.25 or laterManages Experience Edge API keys.
dbcleanup5.0 or laterExecutes database cleanup according to the provided tasks.
environment5.2 or laterManages environment configurations.
If you have suggestions for improving this article, let us know!