# How to change default Discourse theme via CLI?

**URL:** https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920
**Category:** Support
**Created:** [March 26, 2018, 11:36pm UTC](https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920 "2018-03-26T23:36:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vchrizz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vchrizz/32/90441_2.png) [@vchrizz](https://meta.discourse.org/u/vchrizz)
#### Post date: [March 26, 2018, 11:36pm UTC](https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920/1 "2018-03-26T23:36:17Z")

</div>

just upgraded discourse from 2.0.0.beta4 to 2.0.0.beta5 and now the page does not load.  
browser console gives some error about my slick gallery component which i have set as default theme.  
now i tried to access /admin/ but here i get the same result.  
i have alread read [How to change default Discourse theme?](https://meta.discourse.org/t/how-to-change-default-discourse-theme/63483)  
but as said, i cant access discourse administration.  
how could i change the default theme on cli?  
thanks

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [March 26, 2018, 11:56pm UTC](https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920/2 "2018-03-26T23:56:20Z")

</div>

You can use [safe mode](https://meta.discourse.org/t/53504?silent=true) to access the site if you have an issue with a theme/plugin:

> [@Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504):
>
> bookmark This guide explains how to use Discourse’s [Safe Mode](https://meta.discourse.org/t/53504?silent=true) to troubleshoot issues with themes and plugins. person_raising_hand Required user level: All users Discourse offers a “JavaScript [Safe Mode](https://meta.discourse.org/t/53504?silent=true)” that allows any user to isolate the root cause of JavaScript issues caused by plugins, themes, or theme components. This feature is particularly useful for troubleshooting problems on your Discourse site. Accessing [Safe Mode](https://meta.discourse.org/t/53504?silent=true) To access [Safe Mode](https://meta.discourse.org/t/53504?silent=true), follow these steps: Open a new browse…

---

<div class="post-metadata">

### Author: ![vchrizz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vchrizz/32/90441_2.png) [@vchrizz](https://meta.discourse.org/u/vchrizz)
#### Post date: [March 26, 2018, 11:59pm UTC](https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920/3 "2018-03-26T23:59:58Z")

</div>

thanks for the hint!  
i think this should be stated in installation guide and in guide for how to add plugins/themes. 🙂

---

<div class="post-metadata">

### Author: ![ahmed\_alamiry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed_alamiry/32/198190_2.png) [@ahmed\_alamiry](https://meta.discourse.org/u/ahmed_alamiry)
#### Post date: [March 4, 2019, 11:45am UTC](https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920/4 "2019-03-04T11:45:59Z")

</div>

> [@My broken Discourse install prevents theme import](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657/15):
>
> @david one thing remaining , is there any way to install theme.tar.gz from CLI (through rails or …). I used discourse theme cli to create may themes. and now I import theme.tar.gz through GUI.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/how-to-change-default-discourse-theme-via-cli/83920/5 "2024-06-08T12:37:19Z")

</div>

This topic was automatically closed after 2265 days. New replies are no longer allowed.
