Skip to main content

mr resource version-upload

Push a new version of an existing Resource. The new bytes replace the current version pointer; previous versions remain accessible via their version IDs. The --comment flag attaches a free-form note (useful for "rotated 90°" or "rescanned" audit trails).

Usage

mr resource version-upload <resource-id> <file>

Positional arguments:

  • <resource-id>
  • <file>

Examples

Upload a new version

mr resource version-upload 42 ./photo_v2.jpg

With a comment

mr resource version-upload 42 ./photo_v2.jpg --comment "color corrected"

Flags

FlagTypeDefaultDescription
--commentstring``Version comment

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