# prb cookie-category command reference

Manage cookie categories. This page documents **7 commands** under `prb cookie-category`.

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 cookie-category`](#prb-cookie-category)                 | Manage cookie categories.             | `prb cookie-category <command>`    | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/cookie_category.go#L35) |
| [`prb cookie-category create`](#prb-cookie-category-create)   | Create a new cookie category.         | `prb cookie-category create`       | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/create/create.go#L74)   |
| [`prb cookie-category delete`](#prb-cookie-category-delete)   | Delete a cookie category.             | `prb cookie-category delete <id>`  | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/delete/delete.go#L46)   |
| [`prb cookie-category list`](#prb-cookie-category-list)       | List cookie categories for a banner.  | `prb cookie-category list`         | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/list/list.go#L73)       |
| [`prb cookie-category reorder`](#prb-cookie-category-reorder) | Change the rank of a cookie category. | `prb cookie-category reorder <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/reorder/reorder.go#L44) |
| [`prb cookie-category update`](#prb-cookie-category-update)   | Update a cookie category.             | `prb cookie-category update <id>`  | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/update/update.go#L69)   |
| [`prb cookie-category view`](#prb-cookie-category-view)       | View a cookie category.               | `prb cookie-category view <id>`    | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/view/view.go#L74)       |

## prb cookie-category

Manage cookie categories.

### Usage

```text
prb cookie-category <command>
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/cookie_category.go#L35).

## prb cookie-category create

Create a new cookie category.

### Usage

```text
prb cookie-category create
```

Accepts no positional arguments.

### Flags

| Flag            | Type    | Default | Required | Description                 |
| --------------- | ------- | ------- | -------- | --------------------------- |
| `--banner-id`   | string  | `""`    | Required | Cookie banner ID (required) |
| `--description` | string  | `""`    | —        | Category description        |
| `--name`        | string  | `""`    | —        | Category name               |
| `--rank`        | integer | `10`    | —        | Display rank                |
| `--slug`        | string  | `""`    | —        | Category slug               |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/create/create.go#L74).

## prb cookie-category delete

Delete a cookie category.

### Usage

```text
prb cookie-category delete <id>
```

Requires 1 positional argument.

### Flags

| Flag          | Type    | Default | Required | Description              |
| ------------- | ------- | ------- | -------- | ------------------------ |
| `--yes`, `-y` | boolean | `false` | —        | Skip confirmation prompt |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/delete/delete.go#L46).

## prb cookie-category list

List cookie categories for a banner.

### Usage

```text
prb cookie-category list
```

Accepts no positional arguments.

### Flags

| Flag             | Type    | Default | Required | Description                                          |
| ---------------- | ------- | ------- | -------- | ---------------------------------------------------- |
| `--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)                 |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/list/list.go#L73).

## prb cookie-category reorder

Change the rank of a cookie category.

### Usage

```text
prb cookie-category reorder <id>
```

Requires 1 positional argument.

### Flags

| Flag     | Type    | Default | Required | Description                  |
| -------- | ------- | ------- | -------- | ---------------------------- |
| `--rank` | integer | `0`     | Required | New rank position (required) |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/reorder/reorder.go#L44).

## prb cookie-category update

Update a cookie category.

### Usage

```text
prb cookie-category update <id>
```

Requires 1 positional argument.

### Flags

| Flag                | Type   | Default | Required | Description                                         |
| ------------------- | ------ | ------- | -------- | --------------------------------------------------- |
| `--description`     | string | `""`    | —        | Category description                                |
| `--name`            | string | `""`    | —        | Category name                                       |
| `--slug`            | string | `""`    | —        | Category slug                                       |
| `--tcf-purpose-ids` | string | `""`    | —        | IAB TCF purpose IDs (comma-separated; empty clears) |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/cookie-category/update/update.go#L69).

## prb cookie-category view

View a cookie category.

### Usage

```text
prb cookie-category 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/cookie-category/view/view.go#L74).
