[PR #12490] feat(cli): add plugin disable/enable commands #14237

Open
opened 2026-02-16 18:19:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12490

State: open
Merged: No


Summary

This PR adds CLI commands to manage plugins, allowing users to disable and enable plugins without manually editing the config file.

Changes

  • Added disabled_plugins field to config schema
  • Modified plugin loading to filter out disabled plugins
  • Added new CLI commands:
    • opencode plugin list - list all plugins and their status
    • opencode plugin disable <name> - disable a plugin
    • opencode plugin enable <name> - enable a previously disabled plugin

Usage

# List all plugins and their status
opencode plugin list

# Disable a plugin
opencode plugin disable my-plugin

# Enable a previously disabled plugin
opencode plugin enable my-plugin

Related Issues

Resolves #7687

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12490 **State:** open **Merged:** No --- ## Summary This PR adds CLI commands to manage plugins, allowing users to disable and enable plugins without manually editing the config file. ## Changes - Added `disabled_plugins` field to config schema - Modified plugin loading to filter out disabled plugins - Added new CLI commands: - `opencode plugin list` - list all plugins and their status - `opencode plugin disable <name>` - disable a plugin - `opencode plugin enable <name>` - enable a previously disabled plugin ## Usage ```bash # List all plugins and their status opencode plugin list # Disable a plugin opencode plugin disable my-plugin # Enable a previously disabled plugin opencode plugin enable my-plugin ``` ## Related Issues Resolves #7687
yindo added the pull-request label 2026-02-16 18:19:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14237