Export users by CLI in Domain Clustered Mode
In an RHSSO Domain Clusterd Mode, how can I export users using CLI?
The default command line like this:
bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/tmp/keycloak_export
cannot run correctly because it uses standalone.xml to start server and export users (but standalone.xml doesn't contain correct settings in domain clustered mode)
So if I add
--server-config=domain.xml
or
--server-config=host.xml
standalone.sh returns a validation error because main element in these files is not \<server> but it is \<domain>.
Ho can I export users in this scenario?