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.
For an API-key setting, the response reports only whether a key is configured. An empty string saves a cleared override, disabling any environment fallback until the key is reset. Provider-specific AI model keys keep each provider's selections separate; use /admin/settings when several profile fields should change atomically.
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
| Flag | Type | Default | Description |
|---|---|---|---|
--reason | string | `` | Free-text note recorded in the audit log |
Inherited global flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | false | Output raw JSON |
--no-header | bool | false | Omit table headers |
--page | int | 1 | Page number for list commands (default page size: 50) |
--quiet | bool | false | Only output IDs |
--server | string | http://localhost:8181 | mahresources server URL (env: MAHRESOURCES_URL) |
Output
Updated setting object with key, label, description, group, type, current, bootDefault, overridden, updatedAt, reason; non-string settings also carry minNumeric and maxNumeric, and allowZero when true; secret settings carry secret, configured and bootConfigured instead of readable values
Exit Codes
0 on success; 1 on unknown key, invalid value, or error