Salesforce introduced a new global CLI executable called sf
that provides you with a single command line taxonomy for cross-Salesforce development.
Salesforce CLI Unification unify all of Salesforce's product under one CLI.
Salesforce CLI goal is to provide a seamless developer experience when building applications
on any salesforce product as well as across products.
CLI Unification is an effort designed to eliminate tool and context switching.
ex :
sf project deploy by default deploys the entire project that is defined in your local directory.
If your project includes Functions and a Force app, then both are deployed to their respective environments.
Let’s say that you later include a Heroku app, some MuleSoft APIs, and a resource from Marketing Cloud in your project.
In this case, sf project deploy will deploy all of these resources to all of the respective environments.
You can use the product-specific project deploy commands that have flag options for granular deployment.
ex :
sf project deploy org will support all the current options for force:source:deploy and force:source:push.
To install the Demo CLI with npm, run the following from your terminal:
npm install --global @salesforce/sf-demo
sf --help
Usefull Commands :
sf --help : shows the top-level topics and commands.
sf project --help : shows the subtopics and commands under project.
sf config get
sf config list
sf config set
sf config unset
sf data data
sf env alias set [ALIAS]
sf env alias unset [ALIAS]
sf env create compute [ENVNAME]
sf env create org [ENVNAME]
sf env display
sf env list
sf env log get
sf env log list
sf env log tail
sf env logdrain add
sf env logdrain list
sf env logdrain remove
sf env open
sf env usage
sf env var get
sf env var list
sf env var set
sf env var unset
sf event event
sf generate analytics template
sf generate apex class
sf generate apex test
sf generate apex trigger
sf generate community
sf generate function
sf generate lightning component
sf generate lightning event
sf generate lightning interface
sf generate project
sf heroku heroku
sf login
sf login functions
sf login org
sf login org jwt
sf logout
sf logout org
sf package package
sf plugins
sf plugins:inspect PLUGIN...
sf plugins:install PLUGIN...
sf plugins:link PLUGIN
sf plugins:uninstall PLUGIN...
sf plugins update
sf project deploy
sf project deploy functions
sf project deploy org
sf project retrieve
sf project retrieve org
sf reset
sf run apex
sf run function
sf run function start
sf test apex
sf test function
sf usage
sf whoami
No comments:
Post a Comment