sf Command Examples

A powerful command-line interface that simplifies development and build automation when working with your Salesforce org. More information: https://developer.salesforce.com/tools/salesforcecli.

sf force:auth:web:login --setalias {{organization}} --instanceurl {{organization_url}}

sf force:org:list

sf force:org:open --targetusername {{organization}}

sf force:org:display --targetusername {{organization}}

sf force:source:push --targetusername {{organization}}

sf force:source:pull --targetusername {{organization}}

sf force:user:password:generate --targetusername {{organization}}

sf force:user:permset:assign --permsetname {{permission_set_name}} --targetusername {{organization}}