Back
Salesforce DX CLI Cheat Sheet
Get Documentation URLs
sfdx forceForce Commands Help
sfdx force -hAnother sub level example
sfdx force:org -hAuthorize a Sandbox Org set an alias and make it the default Dev Hub
sfdx force:auth:web:login -a DevHub -dAuthorize a Prod/Trailhead Org, set an alias, make it the default Org
sfdx force:auth:web:login -a MyAlias -s -r https://login.salesforce.comSet default Dev Hub
sfdx force:config:set defaultdevhubusername=some@user.comSet default Org
sfdx force:config:set defaultusername=some@user.comList defaults
sfdx force:config:listPush Source to Scratch Org
sfdx force:source:pushPull Source from Scratch Org
sfdx force:source:pullLocal & Remote Source Code Changes
sfdx force:source:statusGet a list of connected Orgs
sfdx force:org:listOpen Current Org in Browser
sfdx force:org:openDelete an Org
sfdx force:org:delete -u MyOrgAlias -pCreate Scratch Org for 7 days and make default Org
sfdx force:org:create -a MyAlias -s -f config/project-scratch-def.json -d 7Import
sfdx force:data:tree:import --plan data/sample-dataplan.jsonExport
sfdx force:data:tree:export -hCreate
sfdx force:package:version createInstall
sfdx force:package:installpromote
sfdx force:package:version:promoteRetrieve a particular file
sfdx force:source:retrieve -p c:/Users/<filepath>Deploy a particular file
sfdx force:source:deploy -p  c:/Users/<filepath>generate password for new scratch org
sfdx force:user:pasword:generate --scratchorgusernameUpdate the CLI
sfdx updateCreate a new project
sfdx force:project:create -n myProjectNameOrg Limits
sfdx force:limits:api:displayBack
