Skip to main content

mr admin settings set

Override a runtime setting. The override persists to the database and takes effect on the next use of the setting — no restart required. The command prints the updated setting view so you can confirm the new value.

Size values accept suffix notation (e.g., 1G, 500M, 2048K). Duration values use Go's time.ParseDuration format (30s, 5m, 2h). Use --reason to record why the change was made; the reason is stored in the database and shown by mr admin settings get.

Usage

mr admin settings set <key> <value>

Positional arguments:

  • <key>
  • <value>

Examples

Set max_upload_size to 2 GB

mr admin settings set max_upload_size 2147483648 --reason "increase for video workflow"

Set mrql query timeout

mr admin settings set mrql_query_timeout 30s

Flags

FlagTypeDefaultDescription
--reasonstring``Free-text note recorded in the audit log

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

Updated setting object with key, label, group, type, current, bootDefault, overridden, updatedAt, reason

Exit Codes

0 on success; 1 on unknown key, invalid value, or error

See Also