prb cookie-category command reference
Reference for 7 commands under prb cookie-category, including usage, flag types and defaults, required flags, source examples, and implementation links
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. 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 to browse another command.
Commands
Section titled “Commands”| Command | Description | Usage | Source |
|---|---|---|---|
prb cookie-category | Manage cookie categories. | prb cookie-category <command> | View implementation |
prb cookie-category create | Create a new cookie category. | prb cookie-category create | View implementation |
prb cookie-category delete | Delete a cookie category. | prb cookie-category delete <id> | View implementation |
prb cookie-category list | List cookie categories for a banner. | prb cookie-category list | View implementation |
prb cookie-category reorder | Change the rank of a cookie category. | prb cookie-category reorder <id> | View implementation |
prb cookie-category update | Update a cookie category. | prb cookie-category update <id> | View implementation |
prb cookie-category view | View a cookie category. | prb cookie-category view <id> | View implementation |
prb cookie-category
Section titled “prb cookie-category”Manage cookie categories.
prb cookie-category <command>prb cookie-category create
Section titled “prb cookie-category create”Create a new cookie category.
prb cookie-category createAccepts no positional arguments.
| 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 |
prb cookie-category delete
Section titled “prb cookie-category delete”Delete a cookie category.
prb cookie-category delete <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | boolean | false | — | Skip confirmation prompt |
prb cookie-category list
Section titled “prb cookie-category list”List cookie categories for a banner.
prb cookie-category listAccepts no positional arguments.
| 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) |
prb cookie-category reorder
Section titled “prb cookie-category reorder”Change the rank of a cookie category.
prb cookie-category reorder <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--rank | integer | 0 | Required | New rank position (required) |
prb cookie-category update
Section titled “prb cookie-category update”Update a cookie category.
prb cookie-category update <id>Requires 1 positional argument.
| 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) |
prb cookie-category view
Section titled “prb cookie-category view”View a cookie category.
prb cookie-category view <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--json | boolean | false | — | Output JSON (same as —output json) |
--output, -o | string | "" | — | Output format: json, table (default) |