重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
SalesforceXytoolsForSublime is Rapid development tools for Salesforce Development.
十年的琼海网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。营销型网站的优势是能够根据用户设备显示端的尺寸不同,自动调整琼海建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联从事“琼海网站设计”,“琼海网站推广”以来,每个客户项目都认真落实执行。
From SalesforceXytools For Sublime
v2.1.6(2019/06/15) Support Sfdx Deveopment.
Let us talk about using SalesforceXytools For Sublime
for Salesforce SFDX Development.
use ctrl+alt+o
or SFDX
->SFDX Command
to open SFDX Command Palette
force:project:create
Input your workspaceFolder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [2019-06-15 15:56:30][info] sfdx force:project:create -n "D:\Sfdx-Hello" --template standard
[2019-06-15 15:56:30][info] ********************************************************************************
target dir = D:\Sfdx-Hello
create sfdx-project.json
create README.md
create .forceignore
create .gitignore
create config\project-scratch-def.json
create .vscode\settings.json
create .vscode\launch.json
create .vscode\extensions.json
create .prettierrc
create .prettierignore
create force-app\main\default\lwc\.eslintrc.json
|
force:auth:web:login
Select test or product.
Input your Alias.
1 | [2019-06-15 15:58:00][info] sfdx force:auth:web:login --instanceurl https://login.salesforce.com --setalias Dev1
|
1 2 3 | [2019-06-15 15:59:36][info] sfdx force:org:open -p /home/home.jsp -u Dev1
[2019-06-15 15:59:36][info] ********************************************************************************
Access org 00DXXXXXXXX as user exiaxxxxxxxxxxxxxxxxxxx@xxxxxxxxxxx.com with the following URL: https://xxxxxxxxxxx.my.salesforce.com/secur/frontdoor.jsp?sid=xxxxxxxxxx
|
force:config:set:defaultusername
1 2 3 4 5 6 | [2019-06-15 15:59:58][info] sfdx force:config:set defaultusername=Dev1
[2019-06-15 15:59:58][info] ********************************************************************************
=== Set Config
NAME VALUE
─────────────── ─────
defaultusername Dev1
|
Set default username
1 2 | force:source:retrieve:metadata:base
"ApexClass, ApexPage, ApexComponent, ApexTrigger, LightningComponentBundle, AuraDefinitionBundle, CustomObject"
|
1 2 3 4 5 | [2019-06-15 16:05:59][info] sfdx force:apex:class:create -n Hello1 --outputdir "./force-app/main/default/classes" --template DefaultApexClass
[2019-06-15 16:05:59][info] ********************************************************************************
target dir = D:\Sfdx-Hello\force-app\main\default\classes
create Hello1.cls
create Hello1.cls-meta.xml
|
change your code.
1 2 3 4 5 | public with sharing class Hello1 {
public Hello1() {
System.debug('hello world');
}
}
|
1 2 3 4 5 6 7 | [2019-06-15 16:07:48][info] sfdx force:source:deploy --loglevel fatal --sourcepath "D:\Sfdx-Hello\force-app\main\default\classes\Hello1.cls" --targetusername=Dev1
[2019-06-15 16:07:48][info] ********************************************************************************
=== Deployed Source
FULL NAME TYPE PROJECT PATH
───────── ───────── ──────────────────────────────────────────────────
Hello1 ApexClass force-app\main\default\classes\Hello1.cls
Hello1 ApexClass force-app\main\default\classes\Hello1.cls-meta.xml
|
Know more sfdx command.
The office document about
Salesforce CLI Command Reference
Salesforce CLI.
sfdx base command
1 2 | sfdx force:alias:list
sfdx force:org:list
|
1 | sfdx force:project:create -n ProjectName
|
1 | sfdx force:auth:web:login --setalias MyDevOrg --setdefaultusername
|
1 2 | sfdx force:source:retrieve --manifest ./manifest/package.xml
sfdx force:source:retrieve --metadata "ApexClass, ApexPage, ApexComponent, ApexTrigger, LightningComponentBundle, AuraDefinitionBundle, CustomObject"
|
1 2 | sfdx force:source:deploy --json --loglevel fatal --sourcepath ./force-app/main/default/classes/APEX_NAME.cls
sfdx force:source:deploy -p ./force-app/main/src
|