---
title: "Sitecore Command Line Interface reference"
slug: "sitecore-command-line-interface-reference"
abstract: "Command reference for Sitecore Command Line Interface (CLI)."
---
# Sitecore Command Line Interface reference

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`.

| Subcommand | Versions | Description |
| --- | --- | --- |
| `index` | 4.0 or later | Automates indexing operations. Install the [indexing plugin](https://doc.sitecore.com/xp/en/developers/101/developer-tools/indexing-plugin.html) to access this command.<br><br>For more information, see [The CLI index command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-index-command.html). |
| `init` | All | Initializes a project configuration in the current folder.<br><br>For more information, see [Install Sitecore Command Line Interface](https://doc.sitecore.com/xp/en/developers/101/developer-tools/install-sitecore-command-line-interface.html). |
| `itemres` | 4.0 or later | Creates an item package in a resource file with configurable options. Install the [Items as Resources plugin](https://doc.sitecore.com/xp/en/developers/101/developer-tools/items-as-resources-plugin.html) to access this command.<br><br>For more information, see [The CLI itemres command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-itemres-command.html). |
| `login` | All | Logs in to a Sitecore instance.<br><br>For more information, see [Log in to a Sitecore instance with Sitecore Command Line Interface](https://doc.sitecore.com/xp/en/developers/101/developer-tools/log-in-to-a-sitecore-instance-with-sitecore-command-line-interface.html). |
| `plugin` | 3.0 or later | Manages plugins for the CLI that contain additional commands.<br><br>For more information, see [The CLI plugin command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-plugin-command.html) and [Extend the Command Line Interface with NuGet](https://doc.sitecore.com/xp/en/developers/101/developer-tools/extend-the-command-line-interface-with-nuget.html). |
| `publish` | All | Publishes all content from the Master database to the Web database. Install the [publishing plugin](https://doc.sitecore.com/xp/en/developers/101/developer-tools/publishing-plugin.html) to access this command.<br><br>For more information, see [The CLI publish command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-publish-command.html). |
| `ser, serialization` | All | Handles the serialization of items. Install the [serialization plugin](https://doc.sitecore.com/xp/en/developers/101/developer-tools/serialization-plugin.html) to access this command.<br><br>For more information, see [The CLI serialization command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-serialization-command.html). |
| `connect` | 5.0 or later | Connect your environment to a different existing environment and use its login information.<br><br>For more information, see [The CLI connect command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-connect-command.html). |
| `edge` | 5.1.25 or later | Helps you manage Experience Edge API keys.<br><br>For more information, see [The CLI Edge command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-edge-command.html). |
| `dbcleanup` | 5.0 or later | Performs database cleanup according to the provided tasks.<br><br>For more information, see [The CLI dbcleanup command](https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-cli-dbcleanup-command.html). |