Skip to main content

mr group create

Create a new Group. --name is required; all other fields are optional. Use --owner-id to place the new Group under an existing parent (forming a subtree); use --category-id to attach a Category; pass a JSON blob via --meta for free-form custom metadata. Sends POST /v1/group and returns the persisted record.

Usage

mr group create

Examples

Create a top-level group

mr group create --name "Trips 2026"

Create a child group with meta and a category

mr group create --name "Berlin" --owner-id 5 --category-id 2 --meta '{"city":"Berlin"}'

Flags

FlagTypeDefaultDescription
--namestring``Group name (required) (required)
--descriptionstring``Group description
--tagsstring``Comma-separated tag IDs
--groupsstring``Comma-separated group IDs
--metastring``Meta JSON string
--urlstring``URL
--owner-iduint0Owner group ID
--category-iduint0Category ID

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

Group object with ID, Name, Description, Meta, OwnerId, CategoryId, CreatedAt/UpdatedAt

Exit Codes

0 on success; 1 on any error

See Also