Sitecore Command Line Interface reference

Abstract

Command reference for Sitecore Command Line Interface (CLI).

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

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

SITECORE LOGIN

sitecore login

Logs in to a Sitecore instance.

SITECORE INIT

sitecore init

Initializes a project configuration in the current folder.

SITECORE PUBLISH

sitecore publish

Publishes all content from the Master database to the Web database.

SITECORE SER or SITECORE SERIALIZATION

sitecore ser diff

Compares the content items of two Sitecore instances.

sitecore ser explain

Explains whether a content item path is included and why.

sitecore ser info

Shows serialization configuration information.

sitecore ser package

Lists serialization package commands.

sitecore ser package create

Creates a package of serialized content items.

sitecore ser package install

Installs a package of serialized content items in a Sitecore instance.

sitecore ser pull

Serializes content items from a Sitecore instance to your file system.

sitecore ser push

Pushes serialized content items from your file system to a Sitecore instance.

sitecore ser validate

Checks serialized content items for validity. Can fix common issues with the --fix argument.

sitecore ser watch

Monitors changes to content items in a Sitecore instance and automatically serializes the changes to your file system.