Skip to main content

mr groups list

List Groups, optionally filtered. Filter flags combine with AND. Comma-separated ID lists on --tags and --groups match any of the given IDs via the ?Add query parameter. Date flags (--created-before, --created-after) expect YYYY-MM-DD. Pagination via the global --page flag (default page size 50).

Use --owner-id=0 to restrict to root groups (no parent). The JSON output is a flat array — use group children <id> for tree-structured traversal.

Usage

mr groups list

Examples

List all groups (paged)

mr groups list

Filter by name prefix

mr groups list --name "Trips"

Filter by owner and tag

mr groups list --owner-id 5 --tags 3 --json | jq -r '.[].Name'

Flags

FlagTypeDefaultDescription
--namestring``Filter by name
--descriptionstring``Filter by description
--tagsstring``Comma-separated tag IDs to filter by
--groupsstring``Comma-separated group IDs to filter by
--owner-iduint0Filter by owner group ID
--category-iduint0Filter by category ID
--urlstring``Filter by URL
--created-beforestring``Filter by creation date (before)
--created-afterstring``Filter by creation date (after)

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Array of Group objects with ID, Name, Description, Meta, OwnerId, CategoryId, CreatedAt/UpdatedAt

Exit Codes

0 on success; 1 on any error

See Also