<p>You can uninstall the plugin via CLI but I guess that's not really what you are after. The only other way is to change the auto generated config file in <code>vendor/craftcms/plugins.php</code> and change the parameter for your plugin there. But you can't ever change this attribute for others that downloaded your plugin remotely without doing things you should not do.</p>

CC BY-SA 4.0
2019-03-20T19:29:11.137Z
2019-03-20T19:29:11.137Z
Robin Schambach
<p>When working on a plugin recently, I decided to add a CP section:</p>

<p><strong>composer.json</strong></p>

<pre><code>{
    ...
    "extra":
        ...
        "hasCpSection": true
    ...
}
</code></pre>

<p>The only way that I was able to have this change reflected in Craft was to uninstall/reinstall the plugin. Is there an alternate way (e.g. CLI) to do so?</p>

<plugin-development><composer>
Possible to reflect changes to a plugin's composer.json without uninstall/reinstall?
# Possible to reflect changes to a plugin's composer.json without uninstall/reinstall?

(Asked by: username_0 on 2019-03-20)

When working on a plugin recently, I decided to add a CP section:
composer.json
{
    ...
    "extra":
        ...
        "hasCpSection": true
    ...
}

The only way that I was able to have this change reflected in Craft was to uninstall/reinstall the plugin. Is there an alternate way (e.g. CLI) to do so?

**Tags:** plugin-development, composer

---

## 1 answers

### Answer by username_1 on 2019-03-20. Score: 2 | Accepted answer

You can uninstall the plugin via CLI but I guess that's not really what you are after. The only other way is to change the auto generated config file in `vendor/craftcms/plugins.php` and change the parameter for your plugin there. But you can't ever change this attribute for others that downloaded your plugin remotely without doing things you should not do.


---

