Friday, August 6, 2021

Basic commands SFDX

 Run local tests:

sfdx force:apex:test:run -l RunLocalTests -u <alias> -r human

Display org info:

sfdx force:org:display -u <alias>

Password generation: 

sfdx force:user:password:generate --targetusername <username>

Retrieve metadatatype:

sfdx force:source:retrieve -m SharingRules:"Survey__c.Share"  -u <alias>

Retrieve path (only if the files are locally available):

sfdx force:source:retrieve -p "<path>"  -u <alias>

Reset tracking:

sfdx force:source:tracking:reset -u <alias>

Connection:  

sfdx force:auth:web:login -r <org Link> -a <alias>

Validation:

sfdx force:source:deploy -p "<path>" -c -l <test level> -w 120 -u <alias>

Delete org:

sfdx force:org:delete -u <alias>

Lists changes that have been made locally, remote or both:

sfdx force:source:status -u <alias>

SF Pull:

sfdx force:source:push -u <org alias or username>

SF Push:

sfdx force:source:pull -u <org alias or username>

No comments:

Post a Comment

If you need to connect to the sandbox SFDX

 You can always view all possible connection methods in sfdx sfdx auth --help