Auth0 Home Blog Docs

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


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 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:


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?