# How to change a site setting via the Console

**URL:** <https://meta.discourse.org/t/how-to-change-a-site-setting-via-the-console/32761>\
**Category:** Product Support\
**Created:** [August 31, 2015, 9:29pm UTC](https://meta.discourse.org/t/how-to-change-a-site-setting-via-the-console/32761 "2015-08-31T21:29:26Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Artem\_Vasiliev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artem_vasiliev/32/175226_2.png) [@Artem\_Vasiliev](https://meta.discourse.org/u/Artem_Vasiliev)\
**Post date:** [April 1, 2020, 2:55pm UTC](https://meta.discourse.org/t/how-to-change-a-site-setting-via-the-console/32761/19 "2020-04-01T14:55:11Z")

</div>

Just in case, here’s a shell script oneliner not requiring to restart Discourse: `bundle exec rails runner "SiteSetting.set('enable_sso', false)"`. It works just like it would from Discourse Admin UI.

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-a-site-setting-via-the-console/32761)._
