prb obligation command reference
Reference for 7 commands under prb obligation, including usage, flag types and defaults, required flags, source examples, and implementation links
Manage obligations. This page documents 7 commands under prb obligation.
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 obligation | Manage obligations. | prb obligation <command> | View implementation |
prb obligation create | Create a new obligation. | prb obligation create | View implementation |
prb obligation delete | Delete an obligation. | prb obligation delete <id> | View implementation |
prb obligation list | List obligations in an organization. | prb obligation list | View implementation |
prb obligation publish | Publish the obligation register as a document version. | prb obligation publish | View implementation |
prb obligation update | Update an obligation. | prb obligation update <id> | View implementation |
prb obligation view | View an obligation. | prb obligation view <id> | View implementation |
prb obligation
Section titled “prb obligation”Manage obligations.
prb obligation <command>prb obligation create
Section titled “prb obligation create”Create a new obligation.
prb obligation create| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--actions-to-be-implemented | string | "" | — | Actions to be implemented |
--area | string | "" | — | Obligation area (required) |
--due-date | string | "" | — | Due date (ISO 8601) |
--last-review-date | string | "" | — | Last review date (ISO 8601) |
--org | string | "" | — | Organization ID |
--owner | string | "" | — | Owner profile ID (required) |
--regulator | string | "" | — | Regulator |
--requirement | string | "" | — | Obligation requirement |
--source | string | "" | — | Obligation source (required) |
--status | string | "" | — | Obligation status: NON_COMPLIANT, PARTIALLY_COMPLIANT, COMPLIANT (required) |
--type | string | "" | — | Obligation type: LEGAL, CONTRACTUAL (required) |
Examples
Section titled “Examples”# Create an obligation interactivelyprb obligation create
# Create an obligation non-interactivelyprb obligation create --area "Data Protection" --source "GDPR Article 5" --status NON_COMPLIANT --type LEGAL --owner <profile-id>prb obligation delete
Section titled “prb obligation delete”Delete an obligation.
prb obligation delete <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | boolean | false | — | Skip confirmation prompt |
prb obligation list
Section titled “prb obligation list”List obligations in an organization.
prb obligation listAccepts no positional arguments.
| 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 obligations to list |
--order-by | string | "" | — | Order by field (CREATED_AT, LAST_REVIEW_DATE, DUE_DATE, STATUS) |
--order-direction | string | "DESC" | — | Sort direction (ASC, DESC) |
--org | string | "" | — | Organization ID |
--output, -o | string | "" | — | Output format: json, table (default) |
Examples
Section titled “Examples”# List obligations in the default organizationprb obligation list
# List obligations sorted by due dateprb obligation ls --order-by DUE_DATE --output jsonprb obligation publish
Section titled “prb obligation publish”Publish the obligation register as a document version.
prb obligation publish| 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
Section titled “Examples”# Publish the obligation registerprb obligation publish --org ORG_ID
# Publish with approversprb obligation publish --org ORG_ID --approver PROFILE_ID1 --approver PROFILE_ID2prb obligation update
Section titled “prb obligation update”Update an obligation.
prb obligation update <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--actions-to-be-implemented | string | "" | — | Actions to be implemented |
--area | string | "" | — | Obligation area |
--due-date | string | "" | — | Due date (ISO 8601) |
--last-review-date | string | "" | — | Last review date (ISO 8601) |
--owner | string | "" | — | Owner profile ID |
--regulator | string | "" | — | Regulator |
--requirement | string | "" | — | Obligation requirement |
--source | string | "" | — | Obligation source |
--status | string | "" | — | Obligation status: NON_COMPLIANT, PARTIALLY_COMPLIANT, COMPLIANT |
--type | string | "" | — | Obligation type: LEGAL, CONTRACTUAL |
prb obligation view
Section titled “prb obligation view”View an obligation.
prb obligation 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) |