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
| Parameter | Description | Default Value |
|---|---|---|
-e, --env-id <envId> | Environment ID | — |
--type <type> | Filter type: system / custom | all |
--limit <n> | Maximum number of items to return | 20 |
--offset <n> | Number of items to skip | 0 |
--detail | Display both the member list and policy details simultaneously | — |
--json | Output 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