# Tutor config save command

**URL:** <https://discuss.openedx.org/t/tutor-config-save-command/12875>\
**Category:** Tutor Help\
**Tags:** tutor\
**Created:** [April 30, 2024, 4:59am UTC](https://discuss.openedx.org/t/tutor-config-save-command/12875 "2024-04-30T04:59:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pravallika\_n](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/pravallika_n/32/6760_2.png) [@pravallika\_n](https://discuss.openedx.org/u/pravallika_n)\
**Post date:** [April 30, 2024, 4:59am UTC](https://discuss.openedx.org/t/tutor-config-save-command/12875/1 "2024-04-30T04:59:20Z")

</div>

what does the `tutor config save` command exactly do? If my application already has custom configurations, will running this command reset the configs to default? If so, then how to reverse it?

---

<div class="post-metadata">

**Author:** ![Abdul\_Muqadim](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/abdul_muqadim/32/9226_2.png) [@Abdul\_Muqadim](https://discuss.openedx.org/u/Abdul_Muqadim)\
**Post date:** [April 30, 2024, 9:28am UTC](https://discuss.openedx.org/t/tutor-config-save-command/12875/2 "2024-04-30T09:28:20Z")

</div>

Hey @pravallika_n , The `tutor config save` command in the Tutor tool for managing Open edX platforms is used to regenerate the environment configuration files based on the settings defined in your `config.yml` file. When you run this command, Tutor updates the `env/` directory with new configuration files that reflect any changes you’ve made in `config.yml`.

If you have custom configurations within the `env/` folder that are not specified in `config.yml`, running `tutor config save` will overwrite these manual changes with the configurations generated from `config.yml`. This is because Tutor ensures consistency by regenerating the environment files based on the centralized settings in `config.yml`.

To avoid losing custom settings, you should integrate these changes into the `config.yml` file before running `tutor config save`.I dont think we have any way to reverse it, if you didnt saved those in config.yml before running tutor config save.

please follow [tutor documentation](https://docs.tutor.edly.io/intro.html#:~:text=The%20config.yml%20file%20contains%20your%20user%2Dspecific%20Open%20edX%20settings%20(item%20%231%20above).%20The%20env/%20folder%20contains%20the%20rendered%20templates%20which%20will%20be%20used%20to%20run%20your%20Open%20edX%20platform%20(item%20%232).%20For%20instance%2C%20the%20env/local%20folder%20contains%20the%20docker%2Dcompose.yml%20file%20to%20run%20Open%20edX%20locally.) for further guide

---

<div class="post-metadata">

**Author:** ![pravallika\_n](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/pravallika_n/32/6760_2.png) [@pravallika\_n](https://discuss.openedx.org/u/pravallika_n)\
**Post date:** [May 2, 2024, 11:46am UTC](https://discuss.openedx.org/t/tutor-config-save-command/12875/3 "2024-05-02T11:46:50Z")

</div>

okay thank you!

---

<div class="post-metadata">

**Author:** ![Med\_amine\_Boujelben1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/med_amine_boujelben1/32/6156_2.png) [@Med\_amine\_Boujelben1](https://discuss.openedx.org/u/Med_amine_Boujelben1)\
**Post date:** [August 20, 2024, 11:03am UTC](https://discuss.openedx.org/t/tutor-config-save-command/12875/4 "2024-08-20T11:03:40Z")

</div>

The custom configuration for SMTP works for all custom settings, but when I set a custom configuration for SMTP in the `config.yml` file like this:

```auto
EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST: smtp.gmail.com
EMAIL_HOST_PASSWORD: nhwy wnek zswo ftfz
EMAIL_HOST_USER: smtp.iovision@gmail.com
EMAIL_PORT: 587
EMAIL_USE_SSL: false
EMAIL_USE_TLS: true

```

and then run `tutor config save`, this custom configuration is not applied in the generated environment configuration files (`lms.env.yml` and `cms.env.yml`). Here’s the configuration in `lms.env.yml` and `cms.env.yml`:

> EMAIL\_BACKEND: “django.core.mail.backends.smtp.EmailBackend”  
> EMAIL\_HOST: “smtp”  
> EMAIL\_PORT: 8025  
> EMAIL\_USE\_TLS: false  
> EMAIL\_HOST\_USER: “”  
> EMAIL\_HOST\_PASSWORD: “”

The custom configuration is not being considered, whereas other parameters like `PLATFORM_NAME` are applied correctly
