Skip to main content

mr resource version-download

Stream a specific version's bytes to a local file. Use resource download to fetch the current version; this command exists to retrieve older versions by their version ID. Output path defaults to version_<id> if -o is not given.

Usage

mr resource version-download <version-id>

Positional arguments:

  • <version-id>

Examples

Download a version to an explicit path

mr resource version-download 17 -o old.jpg

Default output path

mr resource version-download 17

Flags

FlagTypeDefaultDescription
--outputstring``Output file path (default: version_<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)

Exit Codes

0 on success; 1 on any error

See Also