Export credentials as XML. The output of this command can be used as input for "import-credentials-as-xml" as is, the only needed change is to set the actual Secrets which are redacted in the output.
Command
java -jar jenkins-cli.jar -s https://jenkins.garasiku.autos/ list-credentials-as-xml STORE
STORE : Store ID to export credentials from. For example the Jenkins
credentials global store would be identified by
"system::system::jenkins", and folder scoped credentials as
"folder::item::/full/name/of/folder"