> 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/secret-management/vhsm-secrets/vhsm-secrets-move.md).

# vhsm secrets move

The `vhsm secrets move` command moves an existing secrets engine to a new path. While all configurations remain intact, any active leases from the old path are revoked. This command supports moving secrets engines within or across namespaces using namespace prefixes in the arguments.

The operation triggers a remount process, returning a migration ID that is used to track progress until completion (success or failure).

{% hint style="info" %}
**Important:** Moving an engine will **revoke all leases** associated with the old path!
{% endhint %}

### **Usage**

```sh
vhsm secrets move <old-path> <new-path>
```

### **Example**

Move a secrets engine within namespaces

```sh
vhsm secrets move ns1/secret/ ns2/kv/
```

This moves the **secrets engine from** `ns1/secret/` **to** `ns2/kv/`.

### **Available Options**

This command does not have any additional flags beyond the standard CLI flags applicable to all commands.
