Sitecore Command Line Interface

The Sitecore Command Line Interface (CLI) is an entry point for automated, command-line interaction with a Sitecore instance that lets you automate deployment and content-related workflows.

Using the CLI, you can perform tasks such as:

  • Creating projects and environments
  • Deploying changes to Sitecore environments
  • Publishing and validating content
  • Synchronizing items between local and remote instances

The CLI is designed for developers who want to automate tasks, integrate Sitecore operations into build pipelines, or work efficiently across multiple environments.

Extending the CLI with plugins

The CLI uses plugins to provide functionality for specific areas such as publishing, serialization and indexing.

Some commands are only available after installing the corresponding plugin. For example, database cleanup commands are provided by the Database Cleanup plugin.

For more information, see the CLI plugins section.

How the CLI fits into development workflows

The Sitecore CLI is used across several key workflows in Sitecore, including content serialization and deployment.

For example, in a content serialization workflow:

  • You configure which items to serialize in your project files
  • You use CLI commands, such as ser pull and ser push, to synchronize items.

This means the CLI acts as the execution layer for many development tasks, while configuration is handled in project files.

When to use the CLI

You typically use the CLI when you need to:

  • Automate repetitive development or deployment tasks
  • Work with multiple environments from a single interface
  • Integrate Sitecore operations into CI/CD pipelines
  • Perform content synchronization and validation
If you have suggestions for improving this article, let us know!