prb asset command reference
Reference for 7 commands under prb asset, including usage, flag types and defaults, required flags, source examples, and implementation links
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. 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 asset | Manage assets. | prb asset <command> | View implementation |
prb asset create | Create a new asset. | prb asset create | View implementation |
prb asset delete | Delete an asset. | prb asset delete <id> | View implementation |
prb asset list | List assets in an organization. | prb asset list | View implementation |
prb asset publish | Publish the asset list as a document version. | prb asset publish | View implementation |
prb asset update | Update an asset. | prb asset update <id> | View implementation |
prb asset view | View an asset. | prb asset view <id> | View implementation |
prb asset
Section titled “prb asset”Manage assets.
prb asset <command>prb asset create
Section titled “prb asset create”Create a new asset.
prb asset create| 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
Section titled “Examples”# Create an asset interactivelyprb asset create
# Create an asset non-interactivelyprb asset create --name "Production Database" --asset-type VIRTUAL --amount 1 --owner <profile-id> --data-types-stored "Customer records"prb asset delete
Section titled “prb asset delete”Delete an asset.
prb asset delete <id>Requires 1 positional argument.
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | boolean | false | — | Skip confirmation prompt |
prb asset list
Section titled “prb asset list”List assets in an organization.
prb asset 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 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
Section titled “Examples”# List assets in the default organizationprb asset list
# List assets sorted by amountprb asset ls --order-by AMOUNT --output jsonprb asset publish
Section titled “prb asset publish”Publish the asset list as a document version.
prb asset 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 asset listprb asset publish --org ORG_ID
# Publish with approversprb asset publish --org ORG_ID --approver PROFILE_ID1 --approver PROFILE_ID2prb asset update
Section titled “prb asset update”Update an asset.
prb asset update <id>Requires 1 positional argument.
| 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) |
prb asset view
Section titled “prb asset view”View an asset.
prb asset 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) |