# A0deploy cli - How to create a partial export (only rules and hooks, for example)?

**URL:** <https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822>\
**Category:** Get Help\
**Tags:** deploy-cli, auth0-deploy\
**Created:** [February 12, 2020, 3:50pm UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822 "2020-02-12T15:50:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneacsu\_c](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aneacsu_c/32/18606_2.png) [@aneacsu\_c](https://community.auth0.com/u/aneacsu_c)\
**Post date:** [February 12, 2020, 3:50pm UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822/1 "2020-02-12T15:50:32Z")

</div>

Hello,

My team is trying to use the auth0 deploy CLI to import and export our tenant configurations. We currently have 3 tenants (dev, test, prod) and so we would need three configurations.

The deploy CLI seems to be doing a pretty good job, but we would like to reuse only _some_ of the configs exported by it, such as rules and hooks. This is because we don’t have the same applications or APIs on all of our tenants.

I saw [here](https://auth0.com/docs/extensions/deploy-cli/guides/import-export-directory-structure) that there is a way to exclude some clients by using settings such as `AUTH0_EXCLUDED_CLIENTS`.

However, since we want to exclude all clients, what is the best way to do this?  
I was hoping maybe there is the chance to use something like this:

`"AUTH0_EXCLUDED_CLIENTS": ["*"],`

or similar, but this doesn’t seem to work.

Also, we would also like to exclude Grants from the CLI export, but couldn’t find any setting for that. Is it possible?

Thanks!

---

<div class="post-metadata">

**Author:** ![max.morrow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/max.morrow/32/12776_2.png) [@max.morrow](https://community.auth0.com/u/max.morrow)\
**Post date:** [May 27, 2021, 8:54pm UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822/2 "2021-05-27T20:54:57Z")

</div>

@aneacsu_c Did you ever find a solution to this?

I was looking to exclude all clients during a deployment as well.

---

<div class="post-metadata">

**Author:** ![benoit.tigeot](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benoit.tigeot/32/30945_2.png) [@benoit.tigeot](https://community.auth0.com/u/benoit.tigeot)\
**Post date:** [November 5, 2021, 5:00pm UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822/3 "2021-11-05T17:00:11Z")

</div>

I am also interested to do that. Is it possible?

---

<div class="post-metadata">

**Author:** ![Bertijn](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Bertijn](https://community.auth0.com/u/Bertijn)\
**Post date:** [August 23, 2023, 7:28am UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822/4 "2023-08-23T07:28:03Z")

</div>

Hi everyone,

I also wanted to use the deploy CLI, just for managing the branding templates in our code. After reading through the docs, I found this:

> <https://github.com/auth0/auth0-deploy-cli/blob/master/docs/configuring-the-deploy-cli.md>

I guess you could make use of the `AUTH0_EXCLUDED` and `AUTH0_INCLUDED_ONLY` options!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 8, 2024, 9:33am UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822/5 "2024-01-08T09:33:02Z")

</div>

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next [Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043) on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

[Learn more here!](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043)

---

<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 22, 2024, 9:33am UTC](https://community.auth0.com/t/a0deploy-cli-how-to-create-a-partial-export-only-rules-and-hooks-for-example/37822/6 "2024-01-22T09:33:54Z")

</div>

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