Show Menu
Cheatography
This is a draft cheat sheet. It is a work in progress and is not finished yet.

Getting Help

sfdx
check the details if it exists
sfdx force
docume­ntation Url's
sfdx force -h
Force commands help
sfdx force:org -h
sub level help

Author­ization

sfdx force:­­au­t­h­:w­­eb:­­login -a DevHub -d
Authorize a Sandbox Org set an alias and make it the default Dev Hub
sfdx force:­­au­t­h­:w­­eb:­­login -a MyAlias -s -r https:­­//­l­o­gi­­n.s­­al­e­s­fo­­rce.com
Authorize a Prod/T­­ra­i­lhead Org, set an alias, make it the default Org
sfdx force:­­co­n­f­ig:set defaul­­td­e­v­hu­­bus­­er­n­a­me­­=so­­me­@­u­se­­r.com
Set default Dev Hub
sfdx force:­­co­n­f­ig:set defaul­­tu­s­e­rn­­ame­­=s­o­m­e@­­use­­r.com
Set default Org
sfdx force:­­co­n­f­ig­­:list
List defaults

Org

sfdx force:­org­:list
Get a list of connected Orgs
sfdx force:­­or­g­:open
Open Current Org in Browser
sfdx force:­­or­g­:­delete -u MyOrgAlias -p
Delete an Org
sfdx force:­­or­g­:­create -a MyAlias -s -f config­­\p­r­o­je­­ct-­­sc­r­a­tc­­h-d­­ef.json -d
Create Scratch Org and make default Org

Source

sfdx force:­­so­u­r­ce­­:push
Push Source to Scratch Org
sfdx force:­­so­u­r­ce­­:pull
Pull Source from Scratch Org
sfdx force:­­so­u­r­ce­­:status
Local & Remote Source Code Changes

Other

sfdx force:­­li­m­i­ts­­:ap­­i:­d­i­splay
Org Limits
sfdx update
Update the Salesforce CLI

Data

sfdx force:­­da­t­a­:t­­ree­­:i­mport --plan data/s­­am­p­l­e-­­dat­­a-­p­l­an.json
Import
sfdx force:­­da­t­a­:t­­ree­­:e­xport -h
Export