lbcli list roles (2.1 and above)

AI Tools

Lists roles resources.

lbcli list roles

Lists roles resources.

lbcli list roles [flags]

Examples:

# Briefly list project 'my-proj' roles: lbcli -J $JWT list roles --project-name=my-proj # List project 'proj-1' roles with a breakdown of their permissions, in JSON format: lbcli -J $JWT list roles --project-name=proj-1 --output-format=json

Flag

Short

Type

Default

Description

--help

-h

bool


Help for roles.

--project name


string


Project name.

This command returns the following fields for each role. The default output format is human-readable. The human-readable output only shows some of these fields. The json/yaml output format is also supported and includes additional fields.

Field

Type

Description

Name

String

Role name.

Type

Enum

Either admin or viewer role.