Skip to main content

mr resources timeline

Display a timeline of Resource activity as an ASCII bar chart. Each bar represents a time bucket (yearly, monthly, or weekly, controlled by --granularity), and the bar height reflects the count of Resources created in that bucket.

The chart is anchored at the --anchor date (default: today) and shows --columns buckets backward from the anchor (default 15, max 60). All resource-list filter flags (--name, --tags, --groups, etc.) apply the same way to the timeline aggregation. Pass the global --json flag to get the raw bucket data for scripting.

Usage

mr resources timeline

Examples

Monthly timeline anchored at today (default)

mr resources timeline

Weekly granularity

mr resources timeline --granularity weekly --columns 12

Yearly timeline filtered by tag

mr resources timeline --granularity yearly --tags 5 --json

Flags

FlagTypeDefaultDescription
--granularitystringmonthlyBucket granularity: yearly, monthly, or weekly
--anchorstring``Anchor date (YYYY-MM-DD); defaults to today
--columnsint15Number of timeline buckets (max 60)
--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

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)

Exit Codes

0 on success; 1 on any error

See Also