# Using kibana source's plugin directory

**URL:** <https://discuss.elastic.co/t/using-kibana-sources-plugin-directory/111432>\
**Category:** Kibana\
**Created:** [December 12, 2017, 8:29pm UTC](https://discuss.elastic.co/t/using-kibana-sources-plugin-directory/111432 "2017-12-12T20:29:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey\_Andres](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joey_andres/32/44982_2.png) [@Joey\_Andres](https://discuss.elastic.co/u/Joey_Andres)\
**Post date:** [December 12, 2017, 8:29pm UTC](https://discuss.elastic.co/t/using-kibana-sources-plugin-directory/111432/1 "2017-12-12T20:29:05Z")

</div>

Hello all,

We modify our own kibana instance. Recently I decided to add a foo plugin in the source's plugin directory. Will this foo plugin be bundled if I do a "npm run build" ??? That is, will I need to manually install it later, or will it automatically be part of our kibana instance.

Cheers,  
Joey Andres

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [December 14, 2017, 5:55pm UTC](https://discuss.elastic.co/t/using-kibana-sources-plugin-directory/111432/2 "2017-12-14T17:55:38Z")

</div>

`npm run build` will not bundle your plugin with Kibana, but you can do this by doing the following:

1. build kibana with `npm run build`
2. extract the tarball or zip archive for the platform you are targeting
3. install your plugin with `bin/kibana-plugin install file:/path/to/your/plugin`
4. recreate the archive after plugin installation completes

If you want to support multiple platforms you'll have to do the last three steps for each platform, but I assume you won't need more than one configuration.

---

<div class="post-metadata">

**Author:** ![Joey\_Andres](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joey_andres/32/44982_2.png) [@Joey\_Andres](https://discuss.elastic.co/u/Joey_Andres)\
**Post date:** [December 14, 2017, 7:49pm UTC](https://discuss.elastic.co/t/using-kibana-sources-plugin-directory/111432/3 "2017-12-14T19:49:25Z")

</div>

What I did is modify the build tasks and copy all the content of the src/plugins to the build/\*\*/plugins directory, after build/\*\*/plugins is created.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 11, 2018, 7:56pm UTC](https://discuss.elastic.co/t/using-kibana-sources-plugin-directory/111432/4 "2018-01-11T19:56:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
