# pal cli rule

Source: https://pal.konvert7.com/docs/cli/rule

Review the rules PAL drafted from your corrections

```bash title="Usage"
pal cli rule <command>
```

A draft steers nothing until it is approved, and a denied draft is never drafted again.

An opinion has no trigger and steers every session. There are at most 8 opinions, one per correction kind. list --all shows each one's correction-kind rate before and after its approval.

## pal cli rule list [#pal-cli-rule-list]

Drafts waiting for a decision

```bash title="Usage"
pal cli rule list [options]
```

| Option | What it does |
| --- | --- |
| `--all` | Every rule, not only the drafts |
| `--json` | Machine-readable output |

## pal cli rule approve [#pal-cli-rule-approve]

Approve a draft so it steers

```bash title="Usage"
pal cli rule approve <id>
```

## pal cli rule opinion [#pal-cli-rule-opinion]

Keep a draft as an opinion, steering every session without a trigger

```bash title="Usage"
pal cli rule opinion <id>
```

## pal cli rule deny [#pal-cli-rule-deny]

Deny a draft; it stays on record so it is not drafted again

```bash title="Usage"
pal cli rule deny <id>
```

## pal cli rule retire [#pal-cli-rule-retire]

End an approved rule or opinion

```bash title="Usage"
pal cli rule retire <id>
```

## pal cli rule add-opinion [#pal-cli-rule-add-opinion]

Write an opinion by hand; it is approved at once

```bash title="Usage"
pal cli rule add-opinion [options]
```

| Option | What it does |
| --- | --- |
| `--kind <value>` | The correction kind it prevents |
| `--when <value>` | The situation, in one sentence |
| `--steering <value>` | The instruction, imperative |
| `--evidence <value>` | Why it is needed |

## pal cli rule legacy-opinions [#pal-cli-rule-legacy-opinions]

Show the opinions the old opinion tracker left, to re-add the ones to keep

```bash title="Usage"
pal cli rule legacy-opinions [options]
```

| Option | What it does |
| --- | --- |
| `--reviewed` | Mark them reviewed: renames opinions.json to opinions.reviewed.json |