Skip to main content

mr series create

Create a new series. --name is required. The server derives the slug from the name at creation time; the slug never changes when the name is later edited, so pick a name with care. On success prints a confirmation line with the new ID; pass the global --json flag to emit the full record for scripting (e.g., piping the new ID into follow-up commands).

Usage

mr series create

Examples

Create a series with just a name

mr series create --name "spring-2026-photos"

Create and capture the new ID via jq

ID=$(mr series create --name "volume-1" --json | jq -r .ID)

Flags

FlagTypeDefaultDescription
--namestring``Series name (required) (required)

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

Created Series object with ID (uint), Name (string), Slug (string), Meta (object), CreatedAt, UpdatedAt

Exit Codes

0 on success; 1 on any error

See Also