> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# plerion triage

> List, create, edit, and delete triage decisions.

With **plerion triage decisions**, you can manage the triage decisions in your tenant. A triage decision is a rule that picks out findings or vulnerabilities, plus an exemption that says why they're exempt and until when.

> [!NOTE]
>
> Reading decisions needs the `Finding:Read` or `Vulnerability:Read` permission. Creating, editing, and deleting them needs `Finding:Triage` or `Vulnerability:Triage`. A tenant that still uses exemptions gets an error from every command. It manages exemptions with [`plerion profiles`](https://docs.plerion.com/cli-reference/commands/profiles) and [`plerion vulnerabilities exemptions`](https://docs.plerion.com/cli-reference/commands/vulnerabilities) instead.

***

## Synopsis

```bash theme={"system"}
plerion triage decisions <subcommand> [options]
```

***

## Subcommands

### list

```bash theme={"system"}
plerion triage decisions list [--per-page <n>] [--cursor <cursor> | --all]
```

Lists decisions. Decisions in force come first, then the rest, each newest first.

| Option | Type | Description |
| - | - | - |
| `--per-page` | integer | Decisions per page, from 1 to 500 (default 100). A page can hold fewer and still have a next one |
| `--cursor` | string | The cursor for the next page. Can't be combined with `--all` |
| `--all` | flag | Fetch every page |

When more decisions follow, the command prints the cursor for the next page to stderr, so the output itself stays clean for scripts.

### get

```bash theme={"system"}
plerion triage decisions get <id>
```

Returns one decision. Table output shows the decision, then one row per rule condition.

### create

```bash theme={"system"}
plerion triage decisions create --subject-kind <kind> --rule <json> --reason <reason> --note <text> \
  [--until <date-time>] [--file <path>]
```

Creates a decision. Pass each part as a flag, in a JSON file with `--file`, or both. A flag wins over the same field in the file.

| Option | Type | Description |
| - | - | - |
| `--subject-kind` | string | **(required)** `finding` or `vulnerability` |
| `--rule` | string | **(required)** The rule as JSON, for example `{"version": 1, "conditions": [...]}` |
| `--reason` | string | **(required)** `FALSE_POSITIVE`, `COMPENSATING_CONTROL`, or `ACCEPTED_RISK` |
| `--note` | string | **(required)** Why the decision was made |
| `--until` | string | When the exemption ends, as an ISO 8601 date-time. Without it, the exemption never ends |
| `--file` | string | A JSON file holding any of `subjectKind`, `rule`, `exemption`, and `note`, or `-` for stdin. The output of `get --output json` works; fields the server sets are dropped |

A rule for findings names exactly one check. A rule on one finding names its check and the finding. A rule on one vulnerability names its asset and its Common Vulnerabilities and Exposures (CVE) ID.

### edit

```bash theme={"system"}
plerion triage decisions edit <id> [--rule <json>] [--reason <reason>] [--until <date-time> | --clear-until] \
  [--note <text>] [--updated-at <date-time>] [--file <path>]
```

Edits a decision. Pass at least one change. Anything you leave out keeps its current value.

| Option | Type | Description |
| - | - | - |
| `--rule` | string | The new rule as JSON |
| `--reason` | string | `FALSE_POSITIVE`, `COMPENSATING_CONTROL`, or `ACCEPTED_RISK` |
| `--until` | string | When the exemption ends, as an ISO 8601 date-time |
| `--clear-until` | flag | Make the exemption never end. Can't be combined with `--until` |
| `--note` | string | Why the decision was changed |
| `--updated-at` | string | The decision's `updatedAt` from your last `get` |
| `--file` | string | A JSON file holding any of `rule`, `exemption`, `note`, and `updatedAt`, or `-` for stdin. The output of `get --output json` works; fields the server sets are dropped |

The edit is refused if someone changed the decision after the version you send as `updatedAt`. When that happens, run `get` again to see their change, then edit again.

> [!WARNING]
>
> Without `--updated-at`, on the flag or in `--file`, the CLI reads the decision first and sends the `updatedAt` it gets back. A change someone made before you ran the command is then overwritten. To be sure you're editing the version you looked at, pass `--updated-at`, or edit the output of `get --output json` and send it back with `--file`.

### delete

```bash theme={"system"}
plerion triage decisions delete <id>
```

Deletes a decision and its history. The findings and vulnerabilities it exempted are no longer exempt by it.

***

## Hidden values

An API key whose role covers only some integrations sees a decision that reaches other integrations with those values left out. Each condition that lost values shows `HAS HIDDEN VALUES` as `true`, and the note is empty. That key can't edit or delete the decision. Use a key whose role covers every integration the decision reaches.

***

## Examples

```bash theme={"system"}
# List the first page, then the next one
plerion triage decisions list --per-page 50
plerion triage decisions list --per-page 50 --cursor <cursor>

# List every decision as JSON
plerion triage decisions list --all --output json

# Exempt one finding as a false positive
plerion triage decisions create --subject-kind finding \
  --rule '{"version":1,"conditions":[{"field":"check","comparison":"isAnyOf","values":["PLERION-AWS-16"]},{"field":"finding","comparison":"isAnyOf","values":["<finding-id>"]}]}' \
  --reason FALSE_POSITIVE --note "Public on purpose: static website"

# Accept the risk of one vulnerability on one asset until the end of June
plerion triage decisions create --subject-kind vulnerability \
  --rule '{"version":1,"conditions":[{"field":"asset","comparison":"isAnyOf","values":["<asset-id>"]},{"field":"cve","comparison":"isAnyOf","values":["CVE-2024-3094"]}]}' \
  --reason ACCEPTED_RISK --until 2027-06-30T00:00:00Z --note "Patched in the next image"

# Change the note and keep everything else
plerion triage decisions edit <id> --note "Reviewed again in December"

# Save a decision, edit it, and send it back with the version you read
plerion triage decisions get <id> --output json > decision.json
plerion triage decisions edit <id> --file decision.json

# Delete a decision
plerion triage decisions delete <id>
```

***

## Output columns

| Column | Description |
| - | - |
| ID | Decision ID |
| SUBJECT KIND | `finding` or `vulnerability` |
| OUTCOME | What the decision does. Today this is always `exempt` |
| REASON | Exemption reason |
| UNTIL AT | When the exemption ends. Empty means it never ends |
| STATUS | Decision status |
| IN FORCE | Whether the decision applies now |
| CONDITIONS | Number of conditions in the rule |
| NOTE | Why the decision was made |
| CREATED BY | User or API key that created the decision |
| UPDATED AT | When the decision was last changed. Pass it to `edit --updated-at` |

`get`, `create`, and `edit` also show one row per rule condition. Use `--output json` to see every field, including `createdAt` and `updatedBy`.

| Column | Description |
| - | - |
| FIELD | What the condition matches, such as `check`, `finding`, `asset`, or `cve` |
| KEY | The tag key, for a tag condition |
| COMPARISON | How the values are compared, such as `isAnyOf` |
| VALUES | The values, separated by commas |
| HAS HIDDEN VALUES | `true` when some values were left out because they name resources outside your key's integrations |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.