# Custom Javascript plugin

**URL:** <https://forum.shopware.com/t/custom-javascript-plugin/85739>\
**Category:** Shopware 6 (English)\
**Created:** [5. März 2021 um 12:17 UTC](https://forum.shopware.com/t/custom-javascript-plugin/85739 "2021-03-05T12:17:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcs](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@lcs](https://forum.shopware.com/u/lcs)\
**Post date:** [5. März 2021 um 12:17 UTC](https://forum.shopware.com/t/custom-javascript-plugin/85739/1 "2021-03-05T12:17:49Z")

</div>

Hello,

This is totally basic but the doc just does not make sense to me. I’m trying to override a JS plugin as described [here](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/extend-core-js-storefront-plugin).

The end of the tutorial states that for any of that to work, I should run `/psh.phar storefront:build`. I can’t find any information on that. Where does psh.phar does even come from?

Obviously I’ve downloaded it from Github, then its doc says we need a file .psh.xml to run psh.phar. There is no such file in my plugin, so how I am supposed to make it up? I’ve taken the basic .psh.xml template described in the Github repo but then running the command (from the root of my plugin) yields `The schemaOrCallable argument has to be a valid path to XSD file or callable`.

How is it supposed to work? Where is the .psh.xml file is supposed to come from to compile a basic JS plugin? Why aren’t there clear instructions in the doc? I’m totally confused by this most basic task.

Thanks

---

<div class="post-metadata">

**Author:** ![ShapeAndShift](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@ShapeAndShift](https://forum.shopware.com/u/ShapeAndShift)\
**Post date:** [6. März 2021 um 07:47 UTC](https://forum.shopware.com/t/custom-javascript-plugin/85739/2 "2021-03-06T07:47:18Z")

</div>

You execute the `psh.phar` file from the root of the directory of your [development template](https://github.com/shopware/development).

If you use the production template, the commands are described within the Git Repo:

> **[shopware/production](https://github.com/shopware/production)**
>
> Shopware 6 production template. Contribute to shopware/production development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![lcs](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@lcs](https://forum.shopware.com/u/lcs)\
**Post date:** [7. März 2021 um 09:13 UTC](https://forum.shopware.com/t/custom-javascript-plugin/85739/3 "2021-03-07T09:13:22Z")

</div>

That did work. Since I was only working with twig files in my plugin before, I hadn’t go through the development installation process.  
Thanks @ShapeAndShift!
