# 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/]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enclaive.cloud/virtual-hsm/cli/configuration-and-management/vhsm-plugin/vhsm-plugin-reload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
