---
title: "Plugins"
slug: "plugins"
abstract: "Overview of plugins that extend the CLI and the plugins folder structure."
---
# Plugins

A [plugin](https://doc.sitecore.com/ch/en/developers/cloud-dev/create-a-plugin-to-register-a-command.html "Create a plugin to register a command") is a library that extends the CLI with additional commands. Plugins are automatically registered when the application starts, if they are located in either of the following:

- A `plugins` folder within the application directory, alongside the binary.

    ```

    -- <PARENT_DIRECTORY>
      |-- copyrights
      |-- plugins
      |  |-- <see directory structure below>
      |-- ch-cli(.exe)
      |-- LICENSE.md
    ```

- A `plugins` folder within the [configuration directory](https://doc.sitecore.com/ch/en/developers/cloud-dev/content-hub-cli.html "Content Hub CLI") in the user profile.

> [!note]
> You can specify search paths by using the environment variable `CH_CLI_PLUGIN_SEARCH_PATHS`. If you want to use more than one path, separate them using `;` or `,`.

The file structure within a search directory includes a separate folder 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>

```