Skip to main content

mr resources list

List Resources, optionally filtered. Filter flags combine with AND. Comma-separated ID lists on --tags, --groups, --notes use the ?Add query parameter to match any of the given IDs. Date flags (--created-before, --created-after) expect YYYY-MM-DD. Sort with --sort-by=field1,-field2 (prefix with - for descending). Pagination via the global --page flag (default page size 50).

Usage

mr resources list

Examples

List all resources (paged)

mr resources list

Filter by content type

mr resources list --content-type image/jpeg

Filter by tag + date

mr resources list --tags 5 --created-after 2026-01-01 --json | jq -r '.[].Name'

Flags

FlagTypeDefaultDescription
--namestring``Filter by name
--descriptionstring``Filter by description
--content-typestring``Filter by content type
--owner-iduint0Filter by owner group ID
--tagsstring``Comma-separated tag IDs to filter by
--groupsstring``Comma-separated group IDs to filter by
--notesstring``Comma-separated note IDs to filter by
--resource-category-iduint0Filter by resource category ID
--created-beforestring``Filter by creation date (before)
--created-afterstring``Filter by creation date (after)
--min-widthuint0Minimum width
--min-heightuint0Minimum height
--max-widthuint0Maximum width
--max-heightuint0Maximum height
--hashstring``Filter by hash
--original-namestring``Filter by original name
--sort-bystring``Comma-separated sort fields

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 resources with id, name, content type, size, dimensions, owner id, created

Exit Codes

0 on success; 1 on any error

See Also