Skip to main content

mr plugin disable

Disable an installed plugin by name. Once disabled, the plugin stops contributing shortcodes, hooks, and UI injections, but its stored settings values and persisted KV data are preserved (use plugin purge-data to remove the KV data). Disabling a plugin that is already disabled is idempotent and returns ok.

Usage

mr plugin disable <name>

Positional arguments:

  • <name>

Examples

Disable a plugin by name

mr plugin disable my-plugin

Disable and confirm via the JSON response

mr plugin disable my-plugin --json | jq -e '.enabled == false'

Flags

This command has no local flags.

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

Object with name, enabled=false, and ok=true on success

Exit Codes

0 on success; 1 on any error

See Also