> 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/documentation/setup/installation/cli.md).

# CLI

## Installing the CLI

To interact with vHSM you can use the enclaive vHSM CLI. The vHSM is also compatible with the Hashicorp CLI.

{% tabs %}
{% tab title="enclaive vHSM CLI" %}
The CLI is available via the vHSM server and run on any Linux distribution.

**Ubuntu/Debian**

Update the package manager and install GPG and wget.

```
sudo apt update && sudo apt install wget
```

**Fedora**

Install wget to download the CLI

```
sudo dnf install -y wget
```

**Download the CLI**

```
wget https://vhsm.enclaive.cloud/static/vhsm
```

{% endtab %}

{% tab title="Hashicorp Vault CLI " %}
To ensure easy compatibility, enclaive vHSM inntegrates seamlessly with the HashiCorp Vault CLI. Follow the instructions in the [Official Packaging Guide](https://www.hashicorp.com/official-packaging-guide) to install the HashiCorp GPG key, verify the key's fingerprint, and install Vault.

**Ubuntu/Debian**

Update the package manager and install GPG and wget.

```
sudo apt update && sudo apt install gpg wget
```

Download the keyring

```
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
```

Verify the keyring

```
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint
```

Add the HashiCorp repository.

```
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
```

Install Vault.

```
sudo apt update && sudo apt install vault
```

**Fedora**

Install `dnf config-manager` to manage your repositories.

```
sudo dnf install -y dnf-plugins-core
```

Use `dnf config-manager` to add the official HashiCorp Linux repository.

```
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
```

Install Vault.

```
sudo dnf -y install vault
```

**Amazon Linux**

Install `yum-config-manager` to manage your repositories.

```
$ sudo yum install -y yum-utils
```

Use `yum-config-manager` to add the official HashiCorp Linux repository.

```
$ sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
```

Install Vault.

```
$ sudo yum -y install vault
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.enclaive.cloud/virtual-hsm/documentation/setup/installation/cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
