# prb processing-activity command reference

Manage processing activities. This page documents **7 commands** under `prb processing-activity`.

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 processing-activity`](#prb-processing-activity)                 | Manage processing activities.                                   | `prb processing-activity <command>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/processing_activity.go#L35) |
| [`prb processing-activity create`](#prb-processing-activity-create)   | Create a new processing activity.                               | `prb processing-activity create`      | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/create/create.go#L76)       |
| [`prb processing-activity delete`](#prb-processing-activity-delete)   | Delete a processing activity.                                   | `prb processing-activity delete <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/delete/delete.go#L43)       |
| [`prb processing-activity list`](#prb-processing-activity-list)       | List processing activities in an organization.                  | `prb processing-activity list`        | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/list/list.go#L73)           |
| [`prb processing-activity publish`](#prb-processing-activity-publish) | Publish the processing activity register as a document version. | `prb processing-activity publish`     | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/publish/publish.go#L83)     |
| [`prb processing-activity update`](#prb-processing-activity-update)   | Update a processing activity.                                   | `prb processing-activity update <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/update/update.go#L64)       |
| [`prb processing-activity view`](#prb-processing-activity-view)       | View a processing activity.                                     | `prb processing-activity view <id>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/view/view.go#L66)           |

## prb processing-activity

Manage processing activities.

### Usage

```text
prb processing-activity <command>
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/processing_activity.go#L35).

## prb processing-activity create

Create a new processing activity.

### Usage

```text
prb processing-activity create
```

### Flags

| Flag                                  | Type    | Default | Required | Description                                                                                                                  |
| ------------------------------------- | ------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `--data-protection-impact-assessment` | string  | `""`    | —        | Data protection impact assessment: NEEDED, NOT_NEEDED (required)                                                             |
| `--data-subject-category`             | string  | `""`    | —        | Data subject category                                                                                                        |
| `--international-transfers`           | boolean | `false` | —        | Processing involves international transfers                                                                                  |
| `--lawful-basis`                      | string  | `""`    | —        | Lawful basis: LEGITIMATE_INTEREST, CONSENT, CONTRACTUAL_NECESSITY, LEGAL_OBLIGATION, VITAL_INTERESTS, PUBLIC_TASK (required) |
| `--name`                              | string  | `""`    | —        | Processing activity name (required)                                                                                          |
| `--org`                               | string  | `""`    | —        | Organization ID                                                                                                              |
| `--personal-data-category`            | string  | `""`    | —        | Personal data category                                                                                                       |
| `--purpose`                           | string  | `""`    | —        | Purpose of processing                                                                                                        |
| `--role`                              | string  | `""`    | —        | Role: CONTROLLER, PROCESSOR (required)                                                                                       |
| `--special-or-criminal-data`          | string  | `""`    | —        | Special or criminal data: YES, NO, POSSIBLE (required)                                                                       |
| `--transfer-impact-assessment`        | string  | `""`    | —        | Transfer impact assessment: NEEDED, NOT_NEEDED (required)                                                                    |

### Examples

```bash
# Create a processing activity interactively
prb processing-activity create

# Create a processing activity non-interactively
prb pa create --name "Customer onboarding" --role CONTROLLER --lawful-basis CONSENT --special-or-criminal-data NO --data-protection-impact-assessment NOT_NEEDED --transfer-impact-assessment NOT_NEEDED
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/create/create.go#L76).

## prb processing-activity delete

Delete a processing activity.

### Usage

```text
prb processing-activity 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/processing-activity/delete/delete.go#L43).

## prb processing-activity list

List processing activities in an organization.

### Usage

```text
prb processing-activity list
```

Accepts no positional arguments.

### Flags

| Flag                | Type    | Default  | Required | Description                                          |
| ------------------- | ------- | -------- | -------- | ---------------------------------------------------- |
| `--after`           | string  | `""`     | —        | Cursor from the previous page (the Next cursor line) |
| `--json`            | boolean | `false`  | —        | Output JSON (same as --output json)                  |
| `--limit`, `-L`     | integer | `30`     | —        | Maximum number of processing activities to list      |
| `--order-by`        | string  | `""`     | —        | Order by field (CREATED_AT, NAME)                    |
| `--order-direction` | string  | `"DESC"` | —        | Sort direction (ASC, DESC)                           |
| `--org`             | string  | `""`     | —        | Organization ID                                      |
| `--output`, `-o`    | string  | `""`     | —        | Output format: json, table (default)                 |

### Examples

```bash
# List processing activities in the default organization
prb processing-activity list

# List processing activities sorted by name
prb pa ls --order-by NAME --output json
```

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

## prb processing-activity publish

Publish the processing activity register as a document version.

### Usage

```text
prb processing-activity publish
```

### Flags

| Flag         | Type         | Default | Required | Description                                                 |
| ------------ | ------------ | ------- | -------- | ----------------------------------------------------------- |
| `--approver` | string array | `[]`    | —        | Approver profile ID (can be repeated; ignored with --minor) |
| `--minor`    | boolean      | `false` | —        | Publish as a minor version (no approval flow)               |
| `--org`      | string       | `""`    | —        | Organization ID                                             |

### Examples

```bash
# Publish the processing activity register
prb processing-activity publish --org ORG_ID

# Publish with approvers
prb processing-activity publish --org ORG_ID --approver PROFILE_ID1 --approver PROFILE_ID2
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/publish/publish.go#L83).

## prb processing-activity update

Update a processing activity.

### Usage

```text
prb processing-activity update <id>
```

Requires 1 positional argument.

### Flags

| Flag             | Type   | Default | Required | Description                                                                                                       |
| ---------------- | ------ | ------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
| `--lawful-basis` | string | `""`    | —        | Lawful basis: LEGITIMATE_INTEREST, CONSENT, CONTRACTUAL_NECESSITY, LEGAL_OBLIGATION, VITAL_INTERESTS, PUBLIC_TASK |
| `--name`         | string | `""`    | —        | Processing activity name                                                                                          |
| `--purpose`      | string | `""`    | —        | Purpose of processing                                                                                             |
| `--role`         | string | `""`    | —        | Role: CONTROLLER, PROCESSOR                                                                                       |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/processing-activity/update/update.go#L64).

## prb processing-activity view

View a processing activity.

### Usage

```text
prb processing-activity 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/processing-activity/view/view.go#L66).
