> 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 %}
