# Import/Export rules settings with auth0-deploy-cli Jan-2022

**URL:** <https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli-jan-2022/98246>\
**Category:** Get Help\
**Tags:** rules-configs, management-api\
**Created:** [January 16, 2023, 1:19pm UTC](https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli-jan-2022/98246 "2023-01-16T13:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaydeeps03](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jaydeeps03/32/36419_2.png) [@Jaydeeps03](https://community.auth0.com/u/Jaydeeps03)\
**Post date:** [January 16, 2023, 1:19pm UTC](https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli-jan-2022/98246/1 "2023-01-16T13:19:34Z")

</div>

Hi Team,

We are looking to update rule-config setting value through Auth0-deploy CLI tool, but did not find any relevant information. We found one old thread where solution was provided but links mentioned in solution are no longer available.

[configuration.clientScopingMapping](https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli/50974/4)

Can someone provide more details here?

Thanks,  
Jaydeep S

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [January 17, 2023, 8:35pm UTC](https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli-jan-2022/98246/4 "2023-01-17T20:35:17Z")

</div>

Hi @Jaydeeps03 ,

I noticed that you created a support ticket for the same query. Below your query is the answer/solution our DSE provided.

> [@Jaydeeps03](#):
>
> We are looking to update rule-config setting value through Auth0-deploy CLI tool, but did not find any relevant information. We found one old thread where solution was provided but links mentioned in solution are no longer available.
> 
> [configuration.clientScopingMapping](https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli/50974/4)

From what I can understand, you are trying to export/import your rules configs via the deploy CLI.

Please note that the secrets of rules and custom DBs cannot be exported out of Auth0. They are in an encrypted state which is decrypted only at runtime during logins. However, they can be imported via the CLI.

To import them, for rules, you can simply add them inside a `rulesConfigs` object in the top-level of the YAML file. Example YAML:

```auto
rulesConfigs:
    key: "key1"
    value: 'value1'

```

Hopefully, the answer can be beneficial to other folks in our community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 31, 2023, 8:35pm UTC](https://community.auth0.com/t/import-export-rules-settings-with-auth0-deploy-cli-jan-2022/98246/5 "2023-01-31T20:35:42Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
