Skip to main content

mr resource version

Fetch metadata for a single version by its version ID. Returns the same fields as versions but as a single key/value record. Useful when you know the version ID and need its size or comment without a list call.

Usage

mr resource version <version-id>

Positional arguments:

  • <version-id>

Examples

Fetch a version by ID

mr resource version 17

Extract size via jq

mr resource version 17 --json | jq -r .size

Flags

This command has no local flags.

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

Version object with id, number, size, type, comment, created

Exit Codes

0 on success; 1 on any error

See Also