# prb tracker-resource command reference

Manage tracker resources. This page documents **7 commands** under `prb tracker-resource`.

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 tracker-resource`](#prb-tracker-resource)               | Manage tracker resources.                        | `prb tracker-resource <command>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/tracker_resource.go#L35) |
| [`prb tracker-resource create`](#prb-tracker-resource-create) | Create a new tracker resource.                   | `prb tracker-resource create`      | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/create/create.go#L70)    |
| [`prb tracker-resource delete`](#prb-tracker-resource-delete) | Delete a tracker resource.                       | `prb tracker-resource delete <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/delete/delete.go#L46)    |
| [`prb tracker-resource list`](#prb-tracker-resource-list)     | List tracker resources in a category.            | `prb tracker-resource list`        | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/list/list.go#L75)        |
| [`prb tracker-resource move`](#prb-tracker-resource-move)     | Move a tracker resource to a different category. | `prb tracker-resource move <id>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/move/move.go#L64)        |
| [`prb tracker-resource update`](#prb-tracker-resource-update) | Update a tracker resource.                       | `prb tracker-resource update <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/update/update.go#L62)    |
| [`prb tracker-resource view`](#prb-tracker-resource-view)     | View a tracker resource.                         | `prb tracker-resource view <id>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/view/view.go#L70)        |

## prb tracker-resource

Manage tracker resources.

### Usage

```text
prb tracker-resource <command>
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/tracker_resource.go#L35).

## prb tracker-resource create

Create a new tracker resource.

### Usage

```text
prb tracker-resource create
```

### Flags

| Flag              | Type   | Default | Required | Description                                                                                               |
| ----------------- | ------ | ------- | -------- | --------------------------------------------------------------------------------------------------------- |
| `--category-id`   | string | `""`    | Required | Cookie category ID (required)                                                                             |
| `--description`   | string | `""`    | —        | Description                                                                                               |
| `--display-name`  | string | `""`    | —        | Display name (required)                                                                                   |
| `--origin`        | string | `""`    | —        | Origin URL (required)                                                                                     |
| `--path`          | string | `""`    | —        | Resource path (required)                                                                                  |
| `--resource-type` | string | `""`    | —        | Resource type: SCRIPT, IFRAME, IMAGE, STYLESHEET, FONT, BEACON, FETCH, MEDIA or SERVICE_WORKER (required) |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/create/create.go#L70).

## prb tracker-resource delete

Delete a tracker resource.

### Usage

```text
prb tracker-resource 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/tracker-resource/delete/delete.go#L46).

## prb tracker-resource list

List tracker resources in a category.

### Usage

```text
prb tracker-resource list
```

Accepts no positional arguments.

### Flags

| Flag             | Type    | Default | Required | Description                                          |
| ---------------- | ------- | ------- | -------- | ---------------------------------------------------- |
| `--after`        | string  | `""`    | —        | Cursor from the previous page (the Next cursor line) |
| `--category-id`  | string  | `""`    | Required | Cookie category 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/tracker-resource/list/list.go#L75).

## prb tracker-resource move

Move a tracker resource to a different category.

### Usage

```text
prb tracker-resource move <id>
```

Requires 1 positional argument.

### Flags

| Flag                   | Type   | Default | Required | Description                          |
| ---------------------- | ------ | ------- | -------- | ------------------------------------ |
| `--target-category-id` | string | `""`    | Required | Target cookie category ID (required) |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/move/move.go#L64).

## prb tracker-resource update

Update a tracker resource.

### Usage

```text
prb tracker-resource update <id>
```

Requires 1 positional argument.

### Flags

| Flag             | Type    | Default | Required | Description                          |
| ---------------- | ------- | ------- | -------- | ------------------------------------ |
| `--description`  | string  | `""`    | —        | Description                          |
| `--display-name` | string  | `""`    | —        | Display name                         |
| `--excluded`     | boolean | `false` | —        | Exclude resource from consent banner |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/tracker-resource/update/update.go#L62).

## prb tracker-resource view

View a tracker resource.

### Usage

```text
prb tracker-resource 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/tracker-resource/view/view.go#L70).
