# prb asset command reference

Manage assets. This page documents **7 commands** under `prb asset`.

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

## prb asset

Manage assets.

### Usage

```text
prb asset <command>
```

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

## prb asset create

Create a new asset.

### Usage

```text
prb asset create
```

### Flags

| Flag                  | Type        | Default | Required | Description                              |
| --------------------- | ----------- | ------- | -------- | ---------------------------------------- |
| `--amount`            | integer     | `0`     | —        | Asset amount (required, at least 1)      |
| `--asset-type`        | string      | `""`    | —        | Asset type: PHYSICAL, VIRTUAL (required) |
| `--data-types-stored` | string      | `""`    | —        | Data types stored (required)             |
| `--name`              | string      | `""`    | —        | Asset name (required)                    |
| `--org`               | string      | `""`    | —        | Organization ID                          |
| `--owner`             | string      | `""`    | —        | Owner profile ID (required)              |
| `--third-party-ids`   | string list | `[]`    | —        | Third party IDs (comma-separated)        |

### Examples

```bash
# Create an asset interactively
prb asset create

# Create an asset non-interactively
prb asset create --name "Production Database" --asset-type VIRTUAL --amount 1 --owner <profile-id> --data-types-stored "Customer records"
```

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

## prb asset delete

Delete an asset.

### Usage

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

## prb asset list

List assets in an organization.

### Usage

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

### Examples

```bash
# List assets in the default organization
prb asset list

# List assets sorted by amount
prb asset ls --order-by AMOUNT --output json
```

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

## prb asset publish

Publish the asset list as a document version.

### Usage

```text
prb asset 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 asset list
prb asset publish --org ORG_ID

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

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

## prb asset update

Update an asset.

### Usage

```text
prb asset update <id>
```

Requires 1 positional argument.

### Flags

| Flag                  | Type        | Default | Required | Description                       |
| --------------------- | ----------- | ------- | -------- | --------------------------------- |
| `--amount`            | integer     | `0`     | —        | Asset amount                      |
| `--asset-type`        | string      | `""`    | —        | Asset type: PHYSICAL, VIRTUAL     |
| `--data-types-stored` | string      | `""`    | —        | Data types stored                 |
| `--name`              | string      | `""`    | —        | Asset name                        |
| `--owner`             | string      | `""`    | —        | Owner profile ID                  |
| `--third-party-ids`   | string list | `[]`    | —        | Third party IDs (comma-separated) |

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

## prb asset view

View an asset.

### Usage

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