Import credentials as XML. The output of "list-credentials-as-xml" can be used as input here 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/ import-credentials-as-xml STORE
STORE : Store ID to import credentials to. 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"