---
title: "audit list"
description: "List agent audit log entries"
canonical: "https://pgbeam.com/docs/cli/audit/list"
last-updated: "2026-10-29T19:01:20.000Z"
---

# audit list

> List agent audit log entries

URL: https://pgbeam.com/docs/cli/audit/list

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

List agent statement audit entries for the linked project, newest first. Filter by credential or event type (e.g. blocked) to focus on policy violations.

## Usage

```bash
pgbeam audit list [flags]
```

## Options

| Option                 | Description                             | Required | Default |
| ---------------------- | --------------------------------------- | -------- | ------- |
| `--credential <value>` | Filter to one agent credential ID       | No       | -       |
| `--event <value>`      | Filter to one event type (e.g. blocked) | No       | -       |
| `--limit <value>`      | Maximum entries to return (default 20)  | No       | -       |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Recent audit entries
pgbeam audit list

# Only blocked statements
pgbeam audit list --event blocked

# Entries for one credential
pgbeam audit list --credential agt_xxx
```

## Output

Displays a table with columns: Time, Event, Kind, Rule, and SQL.