Cheatography
https://cheatography.com
Salesforce CLI Quick Reference
Getting HelpGet Documentation URLs | sfdx force | Force Commands Help | sfdx force -h | Another sub level example | sfdx force:org -h |
AuthorizationAuthorize a Sandbox Org set an alias and make it the default Dev Hub
sfdx force:auth:web:login -a DevHub -d | | Set default Dev Hub
sfdx force:config:set defaultdevhubusername=some@user.com | Set default Org
sfdx force:config:set defaultusername=some@user.com | List defaults
sfdx force:config:list |
SourcePush Source to Scratch Org | sfdx force:source:push | Pull Source from Scratch Org | sfdx force:source:pull | Local & Remote Source Code Changes | sfdx force:source:status |
PackagesCreate | sfdx force:package:version create | Install | sfdx force:package:install | Promote | sfdx force:package:version:promote |
DataImport
sfdx force:data:tree:import --plan data/sample-data-plan.json | Export
sfdx force:data:tree:export -h |
| | OrgGet a list of connected Orgs | sfdx force:org:list | Open Current Org in Browser | sfdx force:org:open | Delete an Org | sfdx force:org:delete -u MyOrgAlias -p |
Create Scratch Org and make default Org
sfdx force:org:create -a MyAlias -s -f config\project-scratch-def.json -d 7
Dreamhouse Example Script | cd dreamhouse-sfdx | sfdx force:config:set defaultdevhubusername=your@username.com | sfdx force:org:create -a dreamhouse -s -f config\project-scratch-def.json -d 7 | sfdx force:source:push | sfdx force:user:permset:assign -n dreamhouse | sfdx force:org:open -p /lightning/page/home |
OtherOrg Limits | sfdx force:limits:api:display | Update the Salesforce CLI | sfdx update |
|
Created By
www.kellermansoftware.com
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by GregFinzer