# Are there api end points for installing and activating a plugin?

**URL:** <https://forum.shopware.com/t/are-there-api-end-points-for-installing-and-activating-a-plugin/104812>\
**Category:** Shopware 6 (English)\
**Tags:** programming\
**Created:** [13. August 2024 um 12:55 UTC](https://forum.shopware.com/t/are-there-api-end-points-for-installing-and-activating-a-plugin/104812 "2024-08-13T12:55:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deng1](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/deng1/32/24268_2.png) [@deng1](https://forum.shopware.com/u/deng1)\
**Post date:** [13. August 2024 um 12:55 UTC](https://forum.shopware.com/t/are-there-api-end-points-for-installing-and-activating-a-plugin/104812/1 "2024-08-13T12:55:09Z")

</div>

Hi,

I have a shopware app, in which i want to help my clients to add matomo tracking code to their shopware shops. I couldnt find a proper way to do it except what chatgpt tells me: i need to make a custom plugin which will injects the code, then i need to „Use the /api/v{version}/plugin/{pluginId}/install endpoint to install the plugin.  
Activate Plugin: Use the /api/v{version}/plugin/{pluginId}/activate endpoint to activate the plugin.“

Is it true that there exist the **api end points for installing and activating a plugin**? I can’t find official docs for it.

Thanks in advance:)

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [14. August 2024 um 15:47 UTC](https://forum.shopware.com/t/are-there-api-end-points-for-installing-and-activating-a-plugin/104812/2 "2024-08-14T15:47:11Z")

</div>

I’ve never heard of it. There is a CLI command for that: bin/console plugin:install xyz.

But is should be easy to write your own plugin api plugin.

---

<div class="post-metadata">

**Author:** ![matthiasewald](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/matthiasewald/32/21341_2.png) [@matthiasewald](https://forum.shopware.com/u/matthiasewald)\
**Post date:** [14. August 2024 um 16:03 UTC](https://forum.shopware.com/t/are-there-api-end-points-for-installing-and-activating-a-plugin/104812/3 "2024-08-14T16:03:34Z")

</div>

> [@Gibts API-Endpunkte zum Installieren und Aktivieren eines Plugins?](https://forum.shopware.com/t/gibts-api-endpunkte-zum-installieren-und-aktivieren-eines-plugins/104813/2):
>
> Moin, du kannst folgende Funktionen nutzen: PUT: /api/\_action/extension/activate/plugin/PLUGINNAMESPACE PUT: /api/\_action/extension/deactivate/plugin/PLUGINNAMESPACE POST: /api/\_action/extension/install/plugin/PLUGINNAMESPACE POST: /api/\_action/extension/uninstall/plugin/PLUGINNAMESPACE DELETE /api/\_action/extension/remove/plugin/PLUGINNAMESPACE Ich hoffe, das hilft schon mal etwas slight_smile Grüße Matthias

🙂

Grüße  
Matthias

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [13. September 2024 um 16:04 UTC](https://forum.shopware.com/t/are-there-api-end-points-for-installing-and-activating-a-plugin/104812/4 "2024-09-13T16:04:24Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
