Skip to main content

mr job command

Run a command key that the Job currently advertises in jobs get. The CLI re-reads detail immediately before submission, uses the advertised endpoint and version, and sends an idempotency key. Supply --idempotency-key to replay the same logical request after a network failure; otherwise the CLI generates a key for this request. The key is printed with the result, and when the request fails the error names it, because a request whose answer was lost may already have been applied: rerun with --idempotency-key <key> to retry it without applying it twice. Commands marked destructive or requiring confirmation need --confirm.

Usage​

mr job command <job-id> <command-key>

Positional arguments:

  • <job-id>
  • <command-key>

Examples​

Run a command currently advertised by the server

mr job command 018f4db1-9b40-7f54-8f16-37a449bcf01d retry

Confirm a destructive command and provide a reusable key

mr job command 018f4db1-9b40-7f54-8f16-37a449bcf01d cancel --confirm --idempotency-key ops-2026-09-23-1

Flags​

FlagTypeDefaultDescription
--idempotency-keystring``Stable key to replay this command safely
--confirmboolfalseConfirm a destructive command or advertised confirmation

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​

Accepted Job command result

Exit Codes​

0 on success; 1 on any error

See Also​