Description
Checklist
- I have looked into the README and have not found a suitable solution or answer.
- I have looked into the documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have upgraded to the latest version of this tool and the issue still persists.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
TL;DR exporting tenant that has multiple clients with the same name with a0deploy export --format=directory
will merge the config into a single JSON file without any warnings.
I've seen this issue #98 that mention clients name must be unique.
But when exporting as directory, there was no warning and the CLI happily merged the clients with the same name name into one JSON file.
I just noticed this issue after doing a0deploy import
and it failed to update the client connections.
In the meantime, I can update the tenant to not use duplicate names.
Expectation
It would be nice if the a0deploy export --format=directory
command logs a warning or just error out when duplicate client names are found.
Or this behavior/limitation could be mentioned in the docs.
Reproduction
- Given Auth0 tenant with duplicate client names
- When running
a0deploy export --format=directory
for that tenant - It should warn or error telling the user that duplicate client names are found and is invalid.
Deploy CLI version
7.17.0
Node version
16.14.0