# pal cli ledger

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

Query the action ledger

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

Examples:

```bash title="Terminal"
pal cli ledger log --project portable-agent-layer --since 7d
pal cli ledger log --target memory/ --outcome applied
pal cli ledger stats --since 24h
```

## pal cli ledger log [#pal-cli-ledger-log]

Matching actions, oldest first

```bash title="Usage"
pal cli ledger log [options]
```

| Option | What it does |
| --- | --- |
| `--project <slug>` | Actions against a registered project |
| `--since <7d\|2026-09-01>` | A duration back from now, or a date |
| `--until <date>` | Upper bound on the timestamp |
| `--actor <id>` | Who caused it |
| `--machine <id>` | Which install wrote it |
| `--runtime <agent>` | claude, cursor, codex, copilot, opencode |
| `--outcome <applied\|failed\|denied>` | What became of the action |
| `--tool <Edit\|Write>` | The tool that acted |
| `--target <substring>` | Match anywhere in the recorded path |
| `--limit <n>` | Keep the newest n matches |
| `--json` | Machine-readable output |

## pal cli ledger show [#pal-cli-ledger-show]

One action in full: change, target, standing

```bash title="Usage"
pal cli ledger show <id> [options]
```

| Option | What it does |
| --- | --- |
| `--json` | Machine-readable output |

## pal cli ledger stats [#pal-cli-ledger-stats]

Counts by outcome, runtime, actor, tool, target

```bash title="Usage"
pal cli ledger stats [options]
```

| Option | What it does |
| --- | --- |
| `--project <slug>` | Actions against a registered project |
| `--since <7d\|2026-09-01>` | A duration back from now, or a date |
| `--until <date>` | Upper bound on the timestamp |
| `--actor <id>` | Who caused it |
| `--machine <id>` | Which install wrote it |
| `--runtime <agent>` | claude, cursor, codex, copilot, opencode |
| `--outcome <applied\|failed\|denied>` | What became of the action |
| `--tool <Edit\|Write>` | The tool that acted |
| `--target <substring>` | Match anywhere in the recorded path |
| `--limit <n>` | Keep the newest n matches |
| `--json` | Machine-readable output |