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.

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, group, type, current (equals bootDefault), bootDefault, overridden (false), updatedAt, reason

Exit Codes

0 on success; 1 on unknown key or error

See Also