# Kibana 8.x Installation without GUI

**URL:** <https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405>\
**Category:** Kibana\
**Created:** [May 23, 2022, 1:13pm UTC](https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405 "2022-05-23T13:13:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smm](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@smm](https://discuss.elastic.co/u/smm)\
**Post date:** [May 23, 2022, 1:13pm UTC](https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405/1 "2022-05-23T13:13:59Z")

</div>

Hi there,  
I want to install Kibana 8.x - actually I already did it. But: There are these new steps when building a new cluster from scratch:

1. /usr/share/Elasticsearch/bin/Elasticsearch-create-enrollment-token -s kibana
2. /usr/share/kibana/bin/kibana-verification-code  
Now: Both need an interaction with the GUI. This solution is not suitable for an automatic installation (eg via ansible).

Is there a way to do the same via CLI / bash?  
I did not find anything so far in the official documentation.

If someone has insight in this (someone from Elastic perhaps 😉 ), please give me a hint.

Thanks and kind regards!

---

<div class="post-metadata">

**Author:** ![smm](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@smm](https://discuss.elastic.co/u/smm)\
**Post date:** [June 1, 2022, 4:54am UTC](https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405/2 "2022-06-01T04:54:10Z")

</div>

Did really noone face the need to install Kibana in a non-manual way?  
Cheers

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 1, 2022, 5:26am UTC](https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405/3 "2022-06-01T05:26:17Z")

</div>

Perhaps this thread

> [@Using token to enrol kibana without a local browser](https://discuss.elastic.co/t/using-token-to-enrol-kibana-without-a-local-browser/302426/4):
>
> You can run bin/kibana-setup --enrollment-token \<your enrollment token here\> I don't think we do a good job documenting this, we will amend that.

And I think it is right there in the docs now... Detached Mode

> **[Start the Elastic Stack with security enabled automatically | Elasticsearch...](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html#stack-start-with-security)**

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [June 1, 2022, 7:26am UTC](https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405/4 "2022-06-01T07:26:35Z")

</div>

The enrollment process that you are looking into, is mainly targeted at interactive installations.

If you want to automate this yourself, you can of course use the same in a scripted manner

- `/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana` does _not_ need an interaction with any GUI already
- see detached mode in [Start the Elastic Stack with security enabled | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html#stack-start-with-security) for a way to configure kibana to connect to an already running Elasticsearch cluster before you start Kibana itself.

But you probably are better off configuring Elasticsearch and Kibana explicitly, replicating the complete manual process in a scripted manner so that you can control each and every aspect of the installation/provisioning. I'd start by looking at [Manually configure security | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/manually-configure-security.html) which has the installation and security configuration steps needed for both Elasticsearch and Kibana and put those in an ansible recipe

---

<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:** [June 29, 2022, 7:26am UTC](https://discuss.elastic.co/t/kibana-8-x-installation-without-gui/305405/5 "2022-06-29T07:26:49Z")

</div>

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