Skip to main content

mr resource download

Stream a Resource's bytes to a local file. Writes to the path given by -o, --output, defaulting to resource_<id> in the current directory. The file content is streamed as-is from the server; no conversion is performed.

Usage

mr resource download <id>

Positional arguments:

  • <id>

Examples

Download to an explicit path

mr resource download 42 -o ./out.jpg

Download to the default path (resource_42)

mr resource download 42

Flags

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