Skip to content

feat(plugins): add CLI enable/disable for plugin.json #790

Description

@Ayush7614

Summary

Add zero plugins enable <id> and zero plugins disable <id> so installed plugins can be toggled via the enabled field in plugin.json without removing them.

Motivation

Hooks and MCP already support enable/disable. Plugins currently require remove/re-add (or hand-editing plugin.json) to deactivate. EXTENDING.md previously called this out as a gap.

Proposed behavior

  • zero plugins enable <id> / zero plugins disable <id>
  • Flags: --user (user plugins only), --json
  • Idempotent: already-enabled / already-disabled reports a clear no-op message
  • Project plugins take precedence over user plugins unless --user is set
  • Preserve existing plugin.json file mode when rewriting

Related PR

Notes for maintainers

Please add the issue-approved label if this scope is accepted so the linked community PR can proceed under CONTRIBUTING.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-approvedReviewed and approved by the core team; community PRs may implement this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions