Salesforce CLI Quick Reference
|
Get Documentation URLs
|
sfdx force
|
|
Force Commands Help
|
sfdx force -h
|
|
Another sub level example
|
sfdx force:org -h
|
|
Authorize a Sandbox Org set an alias and make it the default Dev Hub
sfdx force:auth:web:login -a DevHub -d |
|
Authorize a Prod/Trailhead Org, set an alias, make it the default Org
sfdx force:auth:web:login -a MyAlias -s -r https://login.salesforce.com` |
|
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 |
|
Push 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
|
|
Create
|
sfdx force:package:version create
|
|
Install
|
sfdx force:package:install
|
|
Promote
|
sfdx force:package:version:promote
|
|
Import
sfdx force:data:tree:import --plan data/sample-data-plan.json |
|
Export
sfdx force:data:tree:export -h |
|
Get 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
|
sfdx force:org:create -a MyAlias -s -f config\project-scratch-def.json -d 7
|
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
|
|
Org Limits
|
sfdx force:limits:api:display
|
|
Update the Salesforce CLI
|
sfdx update
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.