Skip to content

Suggested searches

    Search all documentation ↑↓ to navigate Enter to open Esc to close

    prb internal-control command reference

    Reference for 10 commands under prb internal-control, including usage, flag types and defaults, required flags, source examples, and implementation links

    Markdown

    Manage internal controls. This page documents 10 commands under prb internal-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.

    CommandDescriptionUsageSource
    prb internal-controlManage internal controls.prb internal-control <command>View implementation
    prb internal-control createCreate an internal control.prb internal-control createView implementation
    prb internal-control deleteDelete an internal control.prb internal-control delete <id>View implementation
    prb internal-control link-third-partyLink a third party to an internal control.prb internal-control link-third-partyView implementation
    prb internal-control link-treatment-planLink a treatment plan to an internal control.prb internal-control link-treatment-planView implementation
    prb internal-control listList internal controls in an organization.prb internal-control listView implementation
    prb internal-control unlink-third-partyUnlink a third party from an internal control.prb internal-control unlink-third-partyView implementation
    prb internal-control unlink-treatment-planUnlink a treatment plan from an internal control.prb internal-control unlink-treatment-planView implementation
    prb internal-control updateUpdate an internal control.prb internal-control update <id>View implementation
    prb internal-control viewView an internal control.prb internal-control view <id>View implementation

    Manage internal controls.

    prb internal-control <command>

    View command implementation.

    Create an internal control.

    prb internal-control create
    FlagTypeDefaultRequiredDescription
    --categorystring""—Internal control category (required)
    --codestring""—Stable reference, for example IC-ACCESS-01
    --control-typestring""—Control type: PREVENTIVE, DETECTIVE, CORRECTIVE
    --descriptionstring""—Internal control description
    --evidence-cadencestring""—How often evidence is collected, as an ISO-8601 duration such as P1M
    --implementation-statusstring""—Status: NOT_IMPLEMENTED, IN_PROGRESS, IMPLEMENTED, OPERATING
    --namestring""—Internal control name (required)
    --naturestring""—Nature: MANUAL
    --operating-eventstring""—Event that runs the control, for example when someone leaves
    --operating-frequencystring""—ISO-8601 duration for PERIODIC mode, for example P3M
    --operating-modestring""—Operating mode: CONTINUOUS, EVENT, or PERIODIC. Empty clears it
    --orgstring""—Organization ID
    --owner-idstring""—Owner profile ID
    --reviewer-idstring""—Reviewer profile ID
    --testing-cadencestring""—How often effectiveness is tested, as an ISO-8601 duration such as P3M
    Terminal window
    # Create an internal control interactively
    prb internal-control create
    # Create an internal control non-interactively
    prb internal-control create --name "Enable encryption at rest" --category "Security"

    View command implementation.

    Delete an internal control.

    prb internal-control delete <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt

    View command implementation.

    Link a third party to an internal control.

    prb internal-control link-third-party
    FlagTypeDefaultRequiredDescription
    --internal-control-idstring""RequiredInternal control ID (required)
    --third-party-idstring""RequiredThird party ID (required)

    View command implementation.

    Link a treatment plan to an internal control.

    prb internal-control link-treatment-plan
    FlagTypeDefaultRequiredDescription
    --internal-control-idstring""RequiredInternal control ID (required)
    --treatment-plan-idstring""RequiredTreatment plan ID (required)

    View command implementation.

    List internal controls in an organization.

    prb internal-control list

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --afterstring""—Cursor from the previous page (the Next cursor line)
    --filter, -qstring""—Filter internal controls by name or code
    --implementation-statusstring array[]—Filter by implementation status (repeatable)
    --jsonbooleanfalse—Output JSON (same as —output json)
    --limit, -Linteger30—Maximum number of internal controls to list
    --needs-attentionbooleanfalse—Only controls that are not implemented or overdue
    --order-bystring""—Order by field (CREATED_AT, NAME, NEXT_DUE)
    --order-directionstring"DESC"—Sort direction (ASC, DESC)
    --orgstring""—Organization ID
    --output, -ostring""—Output format: json, table (default)
    --ownerstring""—Filter by owner profile ID
    Terminal window
    # List internal controls in the default organization
    prb internal-control list
    # Filter internal controls by name
    prb internal-control list --filter "encryption"
    # List internal controls sorted by name
    prb internal-control ls --order-by NAME --output json
    # List controls that need attention, owned by one profile
    prb internal-control list --needs-attention --owner <profile-id>

    View command implementation.

    Unlink a third party from an internal control.

    prb internal-control unlink-third-party
    FlagTypeDefaultRequiredDescription
    --internal-control-idstring""RequiredInternal control ID (required)
    --third-party-idstring""RequiredThird party ID (required)

    View command implementation.

    Section titled “prb internal-control unlink-treatment-plan”

    Unlink a treatment plan from an internal control.

    prb internal-control unlink-treatment-plan
    FlagTypeDefaultRequiredDescription
    --internal-control-idstring""RequiredInternal control ID (required)
    --treatment-plan-idstring""RequiredTreatment plan ID (required)

    View command implementation.

    Update an internal control.

    prb internal-control update <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --categorystring""—Internal control category
    --codestring""—Stable reference, for example IC-ACCESS-01
    --control-typestring""—Control type: PREVENTIVE, DETECTIVE, CORRECTIVE
    --descriptionstring""—Internal control description
    --evidence-cadencestring""—How often evidence is collected, as an ISO-8601 duration such as P1M
    --implementation-statusstring""—Status: NOT_IMPLEMENTED, IN_PROGRESS, IMPLEMENTED, OPERATING
    --namestring""—Internal control name
    --naturestring""—Nature: MANUAL
    --operating-eventstring""—Event that runs the control, for example when someone leaves
    --operating-frequencystring""—ISO-8601 duration for PERIODIC mode, for example P3M
    --operating-modestring""—Operating mode: CONTINUOUS, EVENT, or PERIODIC. Empty clears it
    --owner-idstring""—Owner profile ID
    --reviewer-idstring""—Reviewer profile ID
    --statestring""—Internal control state: NOT_STARTED, IN_PROGRESS, NOT_APPLICABLE, IMPLEMENTED
    --testing-cadencestring""—How often effectiveness is tested, as an ISO-8601 duration such as P3M

    View command implementation.

    View an internal control.

    prb internal-control view <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --jsonbooleanfalse—Output JSON (same as —output json)
    --output, -ostring""—Output format: json, table (default)

    View command implementation.