You need to sign in to do that
Don't have an account?
Nashle Pak
Hello to all, $
Usually, I use HaoIDE with Sublime Text.
With HaoIDE, I have the possibility to recover elements of my organization to modify them in local: class apex, component lightning, ...
I understand that Salesforce DX pushes us to go through a repository.
But I would like to know if a feature that allows me to recover existing code directly on an organization exists please.
Thank you in advance !
How to download elements of an organization with Visual Studio Code?
Hello to all, $
Usually, I use HaoIDE with Sublime Text.
With HaoIDE, I have the possibility to recover elements of my organization to modify them in local: class apex, component lightning, ...
I understand that Salesforce DX pushes us to go through a repository.
But I would like to know if a feature that allows me to recover existing code directly on an organization exists please.
Thank you in advance !
sfdx force:source:retrieve --sourcepath c:\salesforce\YOURPROJECT\force-app\main\default\classes\YOURCLASS.cls
Documentation
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm
All Answers
You could also look into using Salesforce Ant Migration Tool. I also use it to pull down classes, triggers, permission sets, reports, etc on a daily basis so I can back it up into our own repository or use it to compare production code to my own local copy.
To begin, I thank you for your responsiveness.
But then what is the command of the CLI used to retrieve the classes and components of my environment please?
I yet consult the help with the command "?" but I did not find the command to download on my pc the lightning classes and components of my organization.
sfdx force:source:retrieve --sourcepath c:\salesforce\YOURPROJECT\force-app\main\default\classes\YOURCLASS.cls
Documentation
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm