logo
logo

Plugins

A plugin is a library that extends the CLI with additional commands. Plugins are automatically discovered and registered when the application starts. Two search paths for plugins are available:

  • The plugins folder within the application directory that contains all the out-of-the-box plugins.
  • The plugins folder inside the configuration directory in the user profile.

The file structure within those search directories is fairly flat with a separate subfolder for each plugin:

-- plugins
   |-- Sitecore.CH.Cli.Plugin.Applications
   |   |-- Sitecore.CH.Cli.Plugin.Applications.dll
   |-- Sitecore.CH.Cli.Plugin.Audit
   |   |-- Sitecore.CH.Cli.Plugin.Audit.dll
   |-- <your plugin directory>
       |-- <plugin main assembly>.dll
       |-- <optional: plugin dependencies>

For a step-by-step explanation of how to create a plugin, see Walkthrough: Creating a simple plugin.

Can we improve this article ? Provide feedback

IN THIS ARTICLE