prb control command reference
Reference for 6 commands under prb control, including usage, flag types and defaults, required flags, source examples, and implementation links
Manage controls. This page documents 6 commands under prb control.
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 control | Manage controls. | prb control <command> | View implementation |
prb control create | Create a new control. | prb control create | View implementation |
prb control delete | Delete a control. | prb control delete <id> | View implementation |
prb control list | List controls in a framework. | prb control list | View implementation |
prb control update | Update a control. | prb control update <id> | View implementation |
prb control view | View a control. | prb control view <id> | View implementation |
prb control
Section titled “prb control”Manage controls.
prb control <command>prb control create
Section titled “prb control create”Create a new control.
prb control createAccepts no positional arguments.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--best-practice | boolean | false | — | Mark as best practice |
--description | string | "" | Required | Control description (required) |
--framework | string | "" | Required | Framework ID (required) |
--maturity-level | string | "INITIAL" | — | CMMI maturity level (NONE, INITIAL, MANAGED, DEFINED, QUANTITATIVELY_MANAGED, OPTIMIZING) |
--name | string | "" | Required | Control name (required) |
--not-implemented-justification | string | "" | — | Justification when maturity level is NONE |
--section-title | string | "" | Required | Section title (required) |
Examples
Section titled “Examples”# Create a controlprb control create --framework FW_ID --section-title "A.5" --name "Information security policies" --description "Policies are defined and reviewed" --maturity-level INITIALprb control delete
Section titled “prb control delete”Delete a control.
prb control delete <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | boolean | false | — | Skip confirmation prompt |
prb control list
Section titled “prb control list”List controls in a framework.
prb control listAccepts no positional arguments.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--after | string | "" | — | Cursor from the previous page (the Next cursor line) |
--filter, -q | string | "" | — | Filter controls by search query |
--framework | string | "" | Required | Framework ID (required) |
--json | boolean | false | — | Output JSON (same as —output json) |
--limit, -L | integer | 30 | — | Maximum number of controls to list |
--order-by | string | "" | — | Order by field (CREATED_AT, SECTION_TITLE) |
--order-direction | string | "DESC" | — | Sort direction (ASC, DESC) |
--output, -o | string | "" | — | Output format: json, table (default) |
Examples
Section titled “Examples”# List controls in a frameworkprb control list --framework <framework-id>
# Filter and output as JSONprb control ls --framework <framework-id> --filter "access" --output jsonprb control update
Section titled “prb control update”Update a control.
prb control update <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--best-practice | boolean | false | — | Mark as best practice |
--description | string | "" | — | Control description |
--maturity-level | string | "" | — | CMMI maturity level (NONE, INITIAL, MANAGED, DEFINED, QUANTITATIVELY_MANAGED, OPTIMIZING) |
--name | string | "" | — | Control name |
--not-implemented-justification | string | "" | — | Justification when maturity level is NONE |
--section-title | string | "" | — | Section title |
prb control view
Section titled “prb control view”View a control.
prb control 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) |