> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/virtual-hsm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/virtual-hsm/cli/configuration-and-management/vhsm-plugin/vhsm-plugin-reload.md).

# vhsm plugin reload

The `plugin reload` command is used to reload mounted plugin backends in vHSM. This is useful when you’ve updated or replaced a plugin binary and want to ensure the new version is used without restarting vHSM.

You must specify either the plugin name (`-plugin`) or the specific mount paths (`-mounts`) to reload—but not both at the same time. When using `-plugin`, all mounted paths using that plugin will be reloaded automatically.

**Usage**

```bash
vhsm plugin reload [options]
```

**Available Flags**

**Command options**

| Flag               | Description                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------------------ |
| `-plugin=<string>` | Name of the plugin to reload (as registered in the plugin catalog).                              |
| `-mounts=<array>`  | One or more mount paths of plugin backends to reload (can be comma-separated or multiple flags). |
| `-scope=<string>`  | Scope of the reload. Leave empty for local reloads. Use `global` for multi-cluster reloads.      |

#### **Examples**

* Reload a plugin by name: `vhsm plugin reload -plugin=my-custom-plugin`

```bash
Success! Reloaded plugin: my-custom-plugin
```

* Reload multiple auth plugin mounts:&#x20;

```bash
vhsm plugin reload \
  -mounts=auth/my-custom-plugin-1 \
  -mounts=auth/my-custom-plugin-2
```

```
Success! Reloaded mounts: [auth/my-custom-plugin-1/ auth/my-custom-plugin-2/]
```
