# prb framework command reference

Manage frameworks. This page documents **6 commands** under `prb framework`.

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 framework`](#prb-framework)               | Manage frameworks.                  | `prb framework <command>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/framework.go#L34)     |
| [`prb framework create`](#prb-framework-create) | Create a new framework.             | `prb framework create`      | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/create/create.go#L65) |
| [`prb framework delete`](#prb-framework-delete) | Delete a framework.                 | `prb framework delete <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/delete/delete.go#L43) |
| [`prb framework list`](#prb-framework-list)     | List frameworks in an organization. | `prb framework list`        | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/list/list.go#L71)     |
| [`prb framework update`](#prb-framework-update) | Update a framework.                 | `prb framework update <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/update/update.go#L60) |
| [`prb framework view`](#prb-framework-view)     | View a framework.                   | `prb framework view <id>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/view/view.go#L62)     |

## prb framework

Manage frameworks.

### Usage

```text
prb framework <command>
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/framework.go#L34).

## prb framework create

Create a new framework.

### Usage

```text
prb framework create
```

Accepts no positional arguments.

### Flags

| Flag            | Type   | Default | Required | Description               |
| --------------- | ------ | ------- | -------- | ------------------------- |
| `--description` | string | `""`    | —        | Framework description     |
| `--name`        | string | `""`    | Required | Framework name (required) |
| `--org`         | string | `""`    | —        | Organization ID           |

### Examples

```bash
# Create a framework
prb framework create --name "ISO 27001:2022" --description "Information security standard"
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/create/create.go#L65).

## prb framework delete

Delete a framework.

### Usage

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

## prb framework list

List frameworks in an organization.

### Usage

```text
prb framework 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 frameworks to list                 |
| `--order-by`        | string  | `""`     | —        | Order by field (CREATED_AT)                          |
| `--order-direction` | string  | `"DESC"` | —        | Sort direction (ASC, DESC)                           |
| `--org`             | string  | `""`     | —        | Organization ID                                      |
| `--output`, `-o`    | string  | `""`     | —        | Output format: json, table (default)                 |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/list/list.go#L71).

## prb framework update

Update a framework.

### Usage

```text
prb framework update <id>
```

Requires 1 positional argument.

### Flags

| Flag            | Type   | Default | Required | Description           |
| --------------- | ------ | ------- | -------- | --------------------- |
| `--description` | string | `""`    | —        | Framework description |
| `--name`        | string | `""`    | —        | Framework name        |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/framework/update/update.go#L60).

## prb framework view

View a framework.

### Usage

```text
prb framework 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/framework/view/view.go#L62).
