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
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.
| Subcommand | Versions | Description |
|---|---|---|
| index | 4.0 or later | Automates indexing operations. |
| init | All | Initializes a project configuration in the current folder. |
| itemres | 4.0 or later | Creates an item package in a resource file with configurable options. |
| login | All | Authenticates with a Sitecore instance. |
| plugin | 3.0 or later | Manages CLI plugins. |
| publish | All | Publishes content from the master database to the target environment. |
| ser, serialization | All | Performs serialization operations such as push, pull, and validation. |
| connect | 5.0 or later | Lets you connect your environment to a different existing environment and use its login information. |
| cloud | 5.0 or later | Interacts with SitecoreAI environments and resources. |
| edge | 5.1.25 or later | Manages Experience Edge API keys. |
| dbcleanup | 5.0 or later | Executes database cleanup according to the provided tasks. |
| environment | 5.2 or later | Manages environment configurations. |
If you have suggestions for improving this article, let us know!