---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://perforator.tech/docs/en/guides/cli/install.md
---
> **Documentation Index:** Fetch the complete configuration index at https://perforator.tech/docs/en/llms.txt

# Install Perforator CLI

Build `perforator/cmd/cli` from the root of the repository.

# Configure Perforator CLI

* Set `PERFORATOR_ENDPOINT` environment variable to specify the Perforator server address once. Otherwise you need to use `--url` flag for each command.
* Set `PERFORATOR_SECURE` to enable or disable TLS. By default, TLS is enabled.

{% note info %}

PERFORATOR_ENDPOINT should not contain schema. If port is unset, it is defaulted to 7618 when TLS is enabled and 7617 when it is disabled.

Examples of possible values:
- `perforator.example.org`
- `perforator.example.org:27618`
- `1.2.3.4:10000`

{% endnote %}

```console
export PERFORATOR_ENDPOINT="<your perforator hostname>"
export PERFORATOR_SECURE=true
```

