I used the
sfdx force:mdapi:retrieve --retrievetargetdir force-app -k manifest/package.xml command to pull down the source metadata from a production org. The retrieval process successfully ran and the zipfile was stored in the project force-app directory called unpackaged.zip.
I now want to use the mdapi:deploy option and deploy the metadata to a completely different production org. Do I need to rerun authorize org and connect to the different production org that I'm targeting? How do I make sure that I've correctly authorized and pointed to the production target org? Also, I only want to run a check first so I can just add the --checkonly parameter? Do I need to extract the metadata in the unpackaged.zip file into the
force-app/main/default/ directory? Or, can I just point to the unpackaged.zip file to run the deploy?
I haven't gone thru this process using the sfdx commands and am unsure of the exact steps I need to take. All I'm trying to do at the moment is just run a check and verify if the deployment will be successful or get a list of errors.