Skip to content

Suggested searches

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

    prb device command reference

    Reference for 8 commands under prb device, including usage, flag types and defaults, required flags, source examples, and implementation links

    Markdown

    Manage ITAM devices. This page documents 8 commands under prb device.

    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 deviceManage ITAM devices.prb device <command>View implementation
    prb device createCreate a PENDING ITAM device and enrollment token.prb device createView implementation
    prb device deleteDelete one or more revoked ITAM devices.prb device delete <id>...View implementation
    prb device downloadDownload device evidence as a PDF.prb device download <id>...View implementation
    prb device listList ITAM devices in an organization.prb device listView implementation
    prb device revokeRevoke one or more ITAM device enrollments.prb device revoke <id>...View implementation
    prb device set-ownerSet or clear the owner of an ITAM device.prb device set-owner <id>View implementation
    prb device viewView an ITAM device.prb device view <id>View implementation

    Manage ITAM devices.

    prb device <command>

    View command implementation.

    Create a PENDING ITAM device and enrollment token.

    prb device create

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --orgstring""—Organization ID
    --ownerstring""—Owner profile ID
    Terminal window
    # Create a device for the default organization
    prb device create
    # Create a device with an owner
    prb device create --owner <profile-id>

    View command implementation.

    Delete one or more revoked ITAM devices.

    prb device delete <id>...

    Requires at least 1 positional arguments.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt
    Terminal window
    # Revoke devices, then delete them
    prb device revoke <device-id> [<device-id>...]
    prb device delete <device-id> [<device-id>...]

    View command implementation.

    Download device evidence as a PDF.

    prb device download <id>...

    Requires at least 1 positional arguments.

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

    View command implementation.

    List ITAM devices in an organization.

    prb device list

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --afterstring""—Cursor from the previous page (the Next cursor line)
    --agent-versionstring list[]—Filter by agent version; repeat or comma-separate for multiple
    --jsonbooleanfalse—Output JSON (same as —output json)
    --limit, -Linteger30—Maximum number of devices to list
    --order-bystring""—Order by field (CREATED_AT, UPDATED_AT, HOSTNAME, LAST_SEEN_AT)
    --order-directionstring"DESC"—Sort direction (ASC, DESC)
    --orgstring""—Organization ID
    --output, -ostring""—Output format: json, table (default)
    --platformstring list[]—Filter by platform; repeat or comma-separate for multiple (DARWIN, LINUX, FREEBSD, WINDOWS)
    --posture-warningsbooleanfalse—Only devices whose latest posture for some check is FAIL or UNKNOWN
    --posturesbooleanfalse—Include latest posture check results
    --querystring""—Search devices by owner name
    --statestring list[]—Filter by state; repeat or comma-separate for multiple (PENDING, ACTIVE, REVOKED)
    Terminal window
    # List devices in the default organization
    prb device list
    # List devices with latest posture check results
    prb device ls --postures
    # List devices sorted by last seen time
    prb device ls --order-by LAST_SEEN_AT --output json
    # Search devices by owner name
    prb device ls --query "Ada"
    # List active macOS devices
    prb device ls --state ACTIVE --platform DARWIN
    # List active and pending devices
    prb device ls --state ACTIVE --state PENDING

    View command implementation.

    Revoke one or more ITAM device enrollments.

    prb device revoke <id>...

    Requires at least 1 positional arguments.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt
    Terminal window
    prb device revoke <device-id> [<device-id>...]

    View command implementation.

    Set or clear the owner of an ITAM device.

    prb device set-owner <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --ownerstring""—Owner profile ID (empty to clear)
    Terminal window
    # Assign an owner
    prb device set-owner <device-id> --owner <profile-id>
    # Clear the owner
    prb device set-owner <device-id> --owner ""

    View command implementation.

    View an ITAM device.

    prb device view <id>

    Requires 1 positional argument.

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

    View command implementation.