Skip to main content

mr category edit

Partially edit a Category. --id is required and must be positive. Only explicit flags change stored values; an explicit empty string clears a field. Supports --name, --description, --meta-schema, --section-config and all category --custom-* template flags, including --custom-entity-picker-result and --custom-entity-picker-result-css. The picker template supplies content, not selection controls.

Use --custom-entity-picker-result-file or --custom-entity-picker-result-css-file to read UTF-8 HTML or CSS from a file. Each file flag is mutually exclusive with its corresponding inline flag; an empty file clears the slot. Files are read before any HTTP request.

Usage​

mr category edit

Flags​

FlagTypeDefaultDescription
--iduint0Carrier ID (required) (required)
--namestring``Carrier name
--descriptionstring``Carrier description
--meta-schemastring``JSON Schema defining member metadata
--section-configstring``JSON controlling member detail-page sections
--custom-headerstring``Rendered at the top of the group detail page
--custom-header-cssstring``Global CSS for CustomHeader
--custom-detail-footerstring``Rendered at the bottom of the group detail page, below every built-in section
--custom-detail-footer-cssstring``Global CSS for CustomDetailFooter
--custom-sidebarstring``Rendered in the group detail page sidebar
--custom-sidebar-cssstring``Global CSS for CustomSidebar
--custom-summarystring``Rendered on group cards in list views, below the title
--custom-summary-cssstring``Global CSS for CustomSummary
--custom-avatarstring``Replaces the default avatar on group cards
--custom-avatar-cssstring``Global CSS for CustomAvatar
--custom-hover-cardstring``Rendered in the hover card for a group link; falls back to --custom-summary when unset
--custom-hover-card-cssstring``Global CSS for CustomHoverCard
--custom-panel-summarystring``Rendered on group cards inside another entity's detail page panels instead of --custom-summary; falls back to --custom-summary when unset
--custom-panel-summary-cssstring``Global CSS for CustomPanelSummary
--custom-list-headerstring``Rendered above group list pages filtered to exactly this category, against the category itself
--custom-list-header-cssstring``Global CSS for CustomListHeader
--custom-list-footerstring``Rendered below group list pages filtered to exactly this category, against the category itself
--custom-list-footer-cssstring``Global CSS for CustomListFooter
--custom-mrql-resultstring``Template for rendering groups of this category in MRQL results
--custom-mrql-result-cssstring``Global CSS for CustomMRQLResult
--custom-entity-picker-resultstring``Template for group content inside an entity picker result
--custom-entity-picker-result-filestring``Read --custom-entity-picker-result from a UTF-8 file (mutually exclusive with the inline flag)
--custom-entity-picker-result-cssstring``Global CSS for CustomEntityPickerResult
--custom-entity-picker-result-css-filestring``Read --custom-entity-picker-result-css from a UTF-8 file (mutually exclusive with the inline flag)
--custom-cssstring``CSS injected as a <style> block on the group detail page and its list pages
--custom-own-entitiesstring``Replaces the body of the group detail page's Own Entities section
--custom-own-entities-cssstring``Global CSS for CustomOwnEntities

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​

Updated Category object with ID and template fields under --json; confirmation otherwise

Exit Codes​

0 on success; 1 on any error

See Also​