3

Anyone who already tried the new Salesforce CLI to transfer Metadata from one org to another?

Is it possible to transfer Profiles?

I already tried to search for a guide but I wasn't able to find one.

Anyone who has the exact steps or an article?

Any help or info is much appreciated

4

If the orgs are connected , a better option is to use change set since you can easily detect dependencies and add them .

Using sfdx you can use sfdx force:source:retrieve to accomplish this .

To retrieve profile you can use below .This also shows how to retrieve apex class and custom object along as well

$ sfdx force:source:retrieve -m "ApexClass, Profile:My Profile, Profile: AnotherProfile,CustomObject:Object1"
| improve this answer | |
1

This can be done using sfdx source commands. If you are familiar with pushing profiles with ANT it will be easy for you. Please note to get the full metadata about profiles you need to mention the related data as well. for example to get the profile access related details for an object that object must be present with the profile in same package.

Here You will get all the source related commands in CLI. ou need to use sfdx force:source:pull followed by an sfdx force:source:push with required parameters. Please let us know if this helps or not.

| improve this answer | |
  • Thanks for the response @Avijiit I would also want to use ANT but our IT is restricting me from installing any compiler like Eclipse. Do you suggest to Deploy profile using CLI or just Manual? Thanks again – Naofumi Kun Jul 16 '19 at 1:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.