Skip to content

list

Synopsis

The list subcommand displays a list of all registered users in the Olares system. You can sort, filter, and format the output to suit your needs.

Aliases: list, ls, l

bash
olares-cli user list [options]

Options

OptionShorthandUsageRequiredDefault
--help-hDisplays help information.NoN/A
--kubeconfigSpecifies the path to a kubeconfig file.NoN/A
--no-headersDisables the header row in the output.NoN/A
--output-oSpecifies the output format. Valid values: table, json.Notable
--reverse-rReverses the sort order of the output.NoN/A
--sortSorts the output by a specific field.
Valid values: name, role, create-time, memory, cpu
NoN/A

Examples

bash
# List all users in a table format
olares-cli user list

# List all users in JSON format
olares-cli user list -o json

# List users sorted by role
olares-cli user list --sort role