# keryn export

Describes Keryn 0.5.2 and keryn-rules 0.8.0.

> .keryn/decisions.yml as OpenVEX 0.2.0 or CycloneDX 1.6 VEX

Source: https://keryn.dev/docs/reference/cli/export/

.keryn/decisions.yml as OpenVEX 0.2.0 or CycloneDX 1.6 VEX.

```text
keryn export --vex <file>
```

## Options

```text
Usage: keryn export --vex <file> [--format openvex|cyclonedx] [path] [--product <purl|url>] [--author <name>] [--timestamp <iso>] [--from <result.json>]
  Writes .keryn/decisions.yml as OpenVEX 0.2.0, or CycloneDX 1.6 VEX with --format cyclonedx ('-' for stdout): status and justification pass through, the reason is the
  impact or action statement, the rule id is the vulnerability name. The product is --product, else the git remote as a purl, else
  pkg:generic/<folder name>. --from names each finding's rule and file (the subcomponent). An accepted risk is affected, with who and until when.
```

## Examples

```sh
# Write the decisions as OpenVEX.
keryn export --vex keryn.openvex.json .
```

## Exit codes

| Code | Meaning |
|---|---|
| 0 | written |
| 2 | usage error or no decisions file |
