SFDX Simplified
The Salesforce CLI is a powerful command-line interface that simplifies development and build automation when working with your Salesforce org. Use it to:
Benefits:
- Aggregate all the tools you need to develop with and perform commands against your Salesforce organization.
- Synchronize source to and from scratch organizations
- Create and manage organizations
- Import and export data
- Create and execute tests
- Create and install packages
Installation
Download: Salesforce CLI
After Installing SFDX CLI, please verify is it working fine or not?
Open Command Prompt for Windows.
- Press Windows Key + R to open the Run dialog box.
- Type CMD to open Command Prompt.
- Type SFDX to verify version and command.
Commands: SFDX commands
- autocomplete
- commands
- force:alias:list
- force:alias:set
- force:analytics:template:create
- force:apex:class:create
- force:apex:execute
- force:apex:log:get
- force:apex:log:list
- force:apex:log:tail
- force:apex:test:report
- force:apex:test:run
- force:apex:trigger:create
- force:auth:device:login
- force:auth:jwt:grant
- force:auth:list
- force:auth:logout
- force:auth:sfdxurl:store
- force:auth:web:login
- force:community:create
- force:community:publish
- force:community:template:list
- force:config:get
- force:config:list
- force:config:set
- force:data:bulk:delete
- force:data:bulk:status
- force:data:bulk:upsert
- force:data:record:create
- force:data:record:delete
- force:data:record:get
- force:data:record:update
- force:data:soql:query
- force:data:tree:export
- force:data:tree:import
- force:lightning:app:create
- force:lightning:component:create
- force:lightning:event:create
- force:lightning:interface:create
- force:lightning:lint
- force:lightning:lwc:test:create
- force:lightning:lwc:test:run
- force:lightning:lwc:test:setup
- force:lightning:test:create
- force:lightning:test:install
- force:lightning:test:run
- force:limits:api:display
- force:mdapi:convert
- force:mdapi:deploy
- force:mdapi:deploy:cancel
- force:mdapi:deploy:report
- force:mdapi:describemetadata
- force:mdapi:listmetadata
- force:mdapi:retrieve
- force:mdapi:retrieve:report
- force:org:clone
- force:org:create
- force:org:delete
- force:org:display
- force:org:list
- force:org:open
- force:org:shape:create
- force:org:shape:delete
- force:org:shape:list
- force:org:snapshot:create
- force:org:snapshot:delete
- force:org:snapshot:get
- force:org:snapshot:list
- force:org:status
- force:package1:version:create
- force:package1:version:create:get
- force:package1:version:display
- force:package1:version:list
- force:package:create
- force:package:hammertest:list
- force:package:hammertest:report
- force:package:hammertest:run
- force:package:install
- force:package:install:report
- force:package:installed:list
- force:package:list
- force:package:uninstall
- force:package:uninstall:report
- force:package:update
- force:package:version:create
- force:package:version:create:list
- force:package:version:create:report
- force:package:version:list
- force:package:version:promote
- force:package:version:report
- force:package:version:update
- force:project:create
- force:project:upgrade
- force:schema:sobject:describe
- force:schema:sobject:list
- force:source:convert
- force:source:delete
- force:source:deploy
- force:source:deploy:cancel
- force:source:deploy:report
- force:source:open
- force:source:pull
- force:source:push
- force:source:retrieve
- force:source:status
- force:user:create
- force:user:display
- force:user:list
- force:user:password:generate
- force:user:permset:assign
- force:visualforce:component:create
- force:visualforce:page:create
- help
- plugins
- plugins:generate
- plugins:install
- plugins:link
- plugins:trust:sign
- plugins:trust:verify
- plugins:uninstall
- plugins:update
- update
- which
|
|
USE of SFDX help
Use "--help" to get assistance on a SFDX command.
Example: SFDX force --help
Connecting to a Salesforce Organization.
- Using Command Prompt
sfdx force:auth:web:login --setalias DefaultOrg
--instanceurl https://test.salesforce.com --setdefaultusername
- Using Microsoft VS Code
VS Code provides a user-friendly user interface where you do not have to remember all SFDX commands. It provides a realistic approach to execute the SFDX command in the backend. for example, the above command can be executed using >SFDX: Set a Default Org.
This article will be updated on viewers comments.
Comments
Post a Comment