# Install the CLI

## Installing the CLI

To interact with vHSM, use the  ***enclaive vHSM CLI*** or ***HashiCorp Vault CLI***

{% tabs %}
{% tab title="vHSM CLI" %}
Download the CLI from the vHSM server

**Ubuntu/Debian/Fedora/RHEL**

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

{% endtab %}

{% tab title="vault CLI" %}
Please 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**

1. Update the package manager and install GPG and wget.

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

2. Download the keyring

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

3. Verify the keyring

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

4. 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
```

5. Install Vault.

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

**Fedora**

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

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

2. 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
```

3. Install Vault.

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

**Amazon Linux**

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

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

2. 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
```

3. Install Vault.

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

{% endtab %}
{% endtabs %}

## Next

Once you have Nitride and the CLI installed, move on with the Nitride workload identity management service [configuration](/nitride/documentation/setup/initialize.md).


---

# 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/nitride/documentation/setup/install-the-cli.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.
