+ Start a Discussion
Jayesh Babu A VJayesh Babu A V 

How to deploy metadata to another org from my local system?

I used the best answer in this question (https://developer.salesforce.com/forums/ForumsMain?id=9062I000000R1mRQAS) to download all the metadata in my org to my local system. Now, I want all those metadata to be deployed to a  new org. Is there any way to do that?
SwethaSwetha (Salesforce Developers) 
HI Jayesh,
Based on the previous forum answer, I understand you are using Workbench to retrive the component to your local system. To deploy using workbench,

>> Login to the target org > Click "Migrations" tab> Deploy

>>Browse(Zip the editied package that has been retrived using retrieve option)

>>Recommended to use check-only as it checks for errors and does not deploy to the org.Once you are sure there are no errors, you can deploy to the new org

See https://help.salesforce.com/articleView?id=000315117&language=en_US&type=1&mode=1 for more details

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Jayesh Babu A VJayesh Babu A V
Thanks for the answer. But, when I use this i am gettting this error while deploying:
The specified package namespace: <namespace> does not match the namespace for the server
here 'namespace' is the namespace of the package I retrieved using the method that I mentioned in my question. How can I solve this?
SwethaSwetha (Salesforce Developers) 
HI Jayesh,

Can you try the approach mentioned in https://salesforce.stackexchange.com/questions/53872/deploying-via-the-migration-tool-with-a-managed-package-failing-due-to-namespace 


Happy to answer any follow up queries. Thanks