# Kibana \[6.8\] - How do I build Kibana from source and include a custom plugin with the build?

**URL:** <https://discuss.elastic.co/t/kibana-6-8-how-do-i-build-kibana-from-source-and-include-a-custom-plugin-with-the-build/194042>\
**Category:** Kibana\
**Created:** [August 6, 2019, 3:36pm UTC](https://discuss.elastic.co/t/kibana-6-8-how-do-i-build-kibana-from-source-and-include-a-custom-plugin-with-the-build/194042 "2019-08-06T15:36:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamuv](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mamuv](https://discuss.elastic.co/u/mamuv)\
**Post date:** [August 6, 2019, 3:36pm UTC](https://discuss.elastic.co/t/kibana-6-8-how-do-i-build-kibana-from-source-and-include-a-custom-plugin-with-the-build/194042/1 "2019-08-06T15:36:37Z")

</div>

I have currently built a custom plugin for kibana using the `generate_plugin` script. I had to modify the links in the `package.json` because I didn't call my root folder `kibana` when pulling the code down from github, however everything works now.

What I want to do next is build kibana from source and have my custom bundle including in that build. To get my build zip I am running `yarn build --skip-os-packages --oss` this works correctly and produces the desired artifacts that I want, however I do not know how to include the custom plugin.

How can I ensure that running my build's bin/kibana will include my custom plugin code as well?

I can't find any documentation on this.

Thanks

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [August 8, 2019, 3:29pm UTC](https://discuss.elastic.co/t/kibana-6-8-how-do-i-build-kibana-from-source-and-include-a-custom-plugin-with-the-build/194042/2 "2019-08-08T15:29:42Z")

</div>

Hi @mamuv, thanks for your question.

It is not possible to bundle the plugin directly with Kibana. You have to build it separately by running `yarn build` in the plugin directory, then you can install it in another instance by following the steps outlined here: [https://www.elastic.co/guide/en/kibana/current/install-plugin.html](https://www.elastic.co/guide/en/kibana/current/install-plugin.html)

---

<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:** [September 5, 2019, 3:29pm UTC](https://discuss.elastic.co/t/kibana-6-8-how-do-i-build-kibana-from-source-and-include-a-custom-plugin-with-the-build/194042/3 "2019-09-05T15:29:45Z")

</div>

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