# BEL CLI reference

In addition to the [commands provided by the Linkerd CLI](https://linkerd.io/2.18/reference/cli/), the commands below are available in the
BEL CLI.

## buoyant diagnostics

Collects data from the Linkerd control plane or a Linkerd proxy running in a
specified pod, and generates a single gzip file that can be sent to Buoyant for
further analysis.

### Usage

Control plane bundle:

```bash
linkerd buoyant diagnostics
```

Proxy bundle:

```bash
linkerd buoyant diagnostics --pod hello-5774974dbc-qlct8
```

### Flags

| Flag                | Usage                                                                |
| ------------------- | -------------------------------------------------------------------- |
| `-f`, `--file`      | Write the diagnostics bundle to the specified file                   |
| `-n`, `--namespace` | Collect diagnostics for the proxy running in the specified namespace |
| `-p`, `--pod`       | Collect diagnostics for the proxy running in the specified pod       |
| `-h`, `--help`      | help for `diagnostics`                                               |

## fips audit

Audits the usage of FIPS-validated cryptographic modules by Linkerd.

### Usage

```bash
linkerd fips audit
```

### Flags

| Flag           | Usage                                                     |
| -------------- | --------------------------------------------------------- |
| `--verbose`    | List each Linkerd proxy that was checked for FIPS modules |
| `-h`, `--help` | help for `audit`                                          |

## license

Prints client license information based on the `BUOYANT_LICENSE` environment
variable, and the server license based on the current cluster.

### Usage

```bash
linkerd license
```

### Flags

| Flag           | Usage                         |
| -------------- | ----------------------------- |
| `--client`     | Print the client license only |
| `-h`, `--help` | help for `license`            |

## policy generate

Generates policy based on current traffic.

### Usage

```bash
linkerd policy generate
```

### Flags

| Flag              | Usage                                                           |
| ----------------- | --------------------------------------------------------------- |
| `--concurrency`   | Limit of concurrent requests to the Kubernetes API (default 10) |
| `--disable-audit` | Disable audit mode, deny traffic                                |
| `--verbose`       | Output detailed logging to stderr                               |
| `-h`, `--help`    | help for `generate`                                             |
