# How can I see all current settings for Discourse?

**URL:** https://meta.discourse.org/t/how-can-i-see-all-current-settings-for-discourse/281931
**Category:** Development
**Created:** [October 11, 2023, 9:51pm UTC](https://meta.discourse.org/t/how-can-i-see-all-current-settings-for-discourse/281931 "2023-10-11T21:51:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aas/32/289331_2.png) [@aas](https://meta.discourse.org/u/aas)
#### Post date: [October 11, 2023, 9:51pm UTC](https://meta.discourse.org/t/how-can-i-see-all-current-settings-for-discourse/281931/1 "2023-10-11T21:51:07Z")

</div>

I can use the following to print settings that were set via the `env` section of my `app.yml`: `docker exec app env | grep DISCOURSE`

How can I print all the settings that are currently being used in my running instance? It doesn’t look like there’s a command for this in the `launcher` script.

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [October 12, 2023, 12:04pm UTC](https://meta.discourse.org/t/how-can-i-see-all-current-settings-for-discourse/281931/2 "2023-10-12T12:04:29Z")

</div>

The environment variables will be access by the Rails app, you can override any environment variable declared in this file, in my guess.

> <https://github.com/discourse/discourse/blob/cb8190d32f549b9f7f2d7642b80ac22fb151bf0b/config/discourse_defaults.conf>

And perhaps you may also want to explore this:

> **[discourse/lib/site\_settings at cb8190d32f549b9f7f2d7642b80ac22fb151bf0b ·...](https://github.com/discourse/discourse/tree/cb8190d32f549b9f7f2d7642b80ac22fb151bf0b/lib/site_settings)**
>
> cb8190d32f549b9f7f2d7642b80ac22fb151bf0b/lib/site\_settings

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 12, 2023, 2:04pm UTC](https://meta.discourse.org/t/how-can-i-see-all-current-settings-for-discourse/281931/3 "2023-10-12T14:04:34Z")

</div>

I think in rails

`SiteSetting.all_settings`

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 12, 2023, 2:09pm UTC](https://meta.discourse.org/t/how-can-i-see-all-current-settings-for-discourse/281931/4 "2023-10-12T14:09:53Z")

</div>

> [@aas](#):
>
> How can I print all the settings that are currently being used in my running instance?

What do you mean? Do you really mean all of the settings? There are hundreds of them as you can see at `/admin/settings`. Do you mean the settings overridden with ENV variables? What you have should do that, I think.

But you can do something like this to get the settings set in the database:

```
docker exec -it app bash -c 'echo "SiteSetting.pluck(:name, :value)" |rails c'

```

To my surprise (though it made sense after thinking about it), this is just the ones that have been changed.
