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:
pluginsfolder within the application directory that contains all the out-of-the-box plugins.
pluginsfolder 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