# prb consent-record command reference

Manage cookie consent records. This page documents **3 commands** under `prb consent-record`.

Flags and examples below come from the command definitions. A **Required** flag is explicitly marked required by Cobra; an unmarked flag can still be needed by runtime validation or a non-interactive workflow. Empty strings and empty lists are registered defaults, not sample values.

Every command also inherits the [global flags](/docs/developers/cli/commands#global-flags). Run `prb <command> --help` to check your installed version. Replace placeholder IDs and names in source examples before running them. Return to the [complete CLI command reference](/docs/developers/cli/commands) to browse another command.

## Commands

| Command                                               | Description                               | Usage                          | Source                                                                                                          |
| ----------------------------------------------------- | ----------------------------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------- |
| [`prb consent-record`](#prb-consent-record)           | Manage cookie consent records.            | `prb consent-record <command>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/consent-record/consent_record.go#L31) |
| [`prb consent-record list`](#prb-consent-record-list) | List cookie consent records for a banner. | `prb consent-record list`      | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/consent-record/list/list.go#L86)      |
| [`prb consent-record view`](#prb-consent-record-view) | View a consent record.                    | `prb consent-record view <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/consent-record/view/view.go#L80)      |

## prb consent-record

Manage cookie consent records.

### Usage

```text
prb consent-record <command>
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/consent-record/consent_record.go#L31).

## prb consent-record list

List cookie consent records for a banner.

### Usage

```text
prb consent-record list
```

Accepts no positional arguments.

### Flags

| Flag             | Type    | Default | Required | Description                                          |
| ---------------- | ------- | ------- | -------- | ---------------------------------------------------- |
| `--action`       | string  | `""`    | —        | Filter by action                                     |
| `--after`        | string  | `""`    | —        | Cursor from the previous page (the Next cursor line) |
| `--banner-id`    | string  | `""`    | Required | Cookie banner ID (required)                          |
| `--json`         | boolean | `false` | —        | Output JSON (same as --output json)                  |
| `--limit`, `-L`  | integer | `30`    | —        | Maximum number of items                              |
| `--output`, `-o` | string  | `""`    | —        | Output format: json, table (default)                 |
| `--version`      | integer | `0`     | —        | Filter by version                                    |
| `--visitor-id`   | string  | `""`    | —        | Filter by visitor ID                                 |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/consent-record/list/list.go#L86).

## prb consent-record view

View a consent record.

### Usage

```text
prb consent-record view <id>
```

Requires 1 positional argument.

### Flags

| Flag             | Type    | Default | Required | Description                          |
| ---------------- | ------- | ------- | -------- | ------------------------------------ |
| `--json`         | boolean | `false` | —        | Output JSON (same as --output json)  |
| `--output`, `-o` | string  | `""`    | —        | Output format: json, table (default) |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/consent-record/view/view.go#L80).
