Skip to main content

mr admin settings reset

Remove a runtime override and revert the setting to its boot-time default. The command prints the post-reset view so you can confirm the current value is back to the default.

Use --reason to record why the override was removed; the reason is stored in the database alongside the reset timestamp.

Resetting an API key restores its environment fallback; it does not reveal that key. Current and boot values remain null in JSON, with configured and bootConfigured describing their status. Resetting a single AI setting affects that key only; the AI section of /admin/settings can reset an entire feature's provider, model and limit overrides together.

Usage​

mr admin settings reset <key>

Positional arguments:

  • <key>

Examples​

Reset max_upload_size to its boot default

mr admin settings reset max_upload_size

Reset with a reason for the audit log

mr admin settings reset mrql_query_timeout --reason "back to default after testing"

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​

Setting object after reset with key, label, description, group, type, current (equals bootDefault), bootDefault, overridden (false); updatedAt and reason are absent; secret settings carry secret, configured and bootConfigured with null current and bootDefault

Exit Codes​

0 on success; 1 on unknown key or error

See Also​