Skip to main content

tcb role list

v3.0.0+

The tcb role command has been available since v3.0.0.

Query all roles in the environment (system roles + custom roles).

Usage​

tcb role list [options]

Parameters​

ParameterDescriptionDefault Value
-e, --env-id <envId>Environment ID—
--type <type>Filter type: system / customall
--limit <n>Maximum number of items to return20
--offset <n>Number of items to skip0
--detailDisplay both the member list and policy details simultaneously—
--jsonOutput JSON—

Examples​

# View all roles
tcb role list -e my-env-id

# View only custom roles
tcb role list --type custom -e my-env-id

# Display details (including members and policies)
tcb role list --detail -e my-env-id