# How can I import/export settings into a file?

**URL:** <https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496>\
**Category:** Product Support\
**Created:** [2016 年10 月 13 日 11:41 UTC](https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496 "2016-10-13T11:41:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

作者： ![Yana\_Nepyivoda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yana_nepyivoda/32/172581_2.png) [@Yana\_Nepyivoda](https://meta.discourse.org/u/Yana_Nepyivoda)\
发布日期： [2020 年3 月 12 日 15:50 UTC](https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496/10 "2020-03-12T15:50:10Z")

</div>

大家好，

我需要将生产环境的站点设置导出到预发布环境。我找到了 Discourse-Settings Uploader 的操作指南，并创建了一个包含设置的 JSON 文件，但无法导入它。我不知道在哪里可以运行以下命令：  
`./discourse-settings-uploader HOSTURL API_KEY API_USER SETTINGS_FILE`  
这是否需要在终端中执行？我的客户告诉我他们使用的是托管版的 Discourse，没有终端访问权限。这是什么意思？我该如何更好地解决这个问题？我对此还不太熟悉，所以需要大家的帮助。

提前感谢！

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496)._
