# Plugin can not extend admin section

**URL:** <https://forum.shopware.com/t/plugin-can-not-extend-admin-section/60097>\
**Category:** Programming (EN)\
**Created:** [20. Juni 2019 um 13:41 UTC](https://forum.shopware.com/t/plugin-can-not-extend-admin-section/60097 "2019-06-20T13:41:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dusank](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dusank](https://forum.shopware.com/u/dusank)\
**Post date:** [20. Juni 2019 um 13:41 UTC](https://forum.shopware.com/t/plugin-can-not-extend-admin-section/60097/1 "2019-06-20T13:41:07Z")

</div>

I have set up Shopware 6 developer version using your installation guide&nbsp;[https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide](https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide)&nbsp;(Local installation).

After that, I wanted to test installing and extending the admin section through the plugin. I have followed your instructions from your several pages ([https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-module](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-module), [https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-element](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-element), [https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-block](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-block)), but Shopware is not&nbsp;recognizing&nbsp;plugin&nbsp;_main.js_ file, no matter what I do.

I have cleared Shopware cache and tried several line commands to refresh admin views, but nothing seems to work.

I have also installed your PayPal plugin for version 6, and this plugin (although by code it should extend some admin section, _Settings_ tab for example), didn’t extend any part.

So, is there some special command which needs to be called in the shop root folder in order to admin view be refreshed, and to included plugins extensions of admin section? Or is there some other way to do this?

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [20. Juni 2019 um 13:45 UTC](https://forum.shopware.com/t/plugin-can-not-extend-admin-section/60097/2 "2019-06-20T13:45:03Z")

</div>

The command “php psh.phar administration:build” will include the plugin sass and js files and rebuild the administration. You can also use “php psh.phar administration:watch” to rebuild it on every change automatically.

This documentation will explain it:&nbsp;[Shopware 6: Add new module to administration](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-module#loading-the-js-files)
