function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Taha HaiderTaha Haider 

How to deploy all profiles?

ShirishaShirisha (Salesforce Developers) 
Hi Taha,

Greetings!

I would recommend you to use metadata API tools to deploy the permissions as the permissions will be reflected if the payload includes the corresponding components in it.

Please refer the below thread for the sample package.xml.
https://salesforce.stackexchange.com/questions/2062/what-is-the-best-way-to-deploy-profiles-in-salesforce-especially-system-admin/19068

If are interested in using any other third party tool then you can consider this below blog which makes life easier.

https://www.salesforceben.com/an-easier-way-to-deploy-profiles-and-permissions-sets/Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri
 
Shreyas MehendaleShreyas Mehendale
We can you ant tool to retrieve and deploy profiles profiles 
Taha HaiderTaha Haider
Really thanks for the guide, but how can we do this by CLI (package.xml file)?