LinuxCommandLibrary

sfdx

Command-line tool for development and build automation with a Salesforce organization.

TLDR

Authorize a Salesforce Organization

$ sfdx force:auth:web:login --setalias [organization] --instanceurl [organization_url]
copy


List all authorized organizations
$ sfdx force:org:list
copy


Open a specific organization in the default web browser
$ sfdx force:org:open --targetusername [organization]
copy


Display information about a specific organization
$ sfdx force:org:display --targetusername [organization]
copy


Push source metadata to an Organization
$ sfdx force:source:push --targetusername [organization]
copy


Pull source metadata from an Organization
$ sfdx force:source:pull --targetusername [organization]
copy


Generate a password for the organization's logged-in user
$ sfdx force:user:password:generate --targetusername [organization]
copy


Assign a permission set for the organization's logged-in user
$ sfdx force:user:permset:assign --permsetname [permission_set_name] --targetusername [organization]
copy

Copied to clipboard