Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SalesforceXyTools Support SFDX develop

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

SalesforceXytoolsForSublime is Rapid development tools for Salesforce Development.

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.

Start sfdx developmentSFDX Command Palette

Use ctrl+alt+o or SFDX- > SFDX Command to open SFDX Command Palette

Create Project

Force:project:create

Input your workspaceFolder

12 3 4 56 7 8 91011121314 [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 .forceful create .gitignore create config\ project-scratch-def.json create .vscode\ settings.json create .vs code\ launch.json create .vscode\ extensions.json create .prettierrc create .prettierrc create force-app\ main\ default\ lwc\ .eslintrc.jsonAuthorize an Org

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 Dev1Test Login

123 [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=xxxxxxxxxxSet default username

Force:config:set:defaultusername

123456 [2019-06-15 15:59:58] [info] sfdx force:config:set defaultusername=Dev1 [2019-06-15 15:59:58] [info] * Set ConfigNAME VALUE ─ ─ defaultusername Dev1

Set default username

Retrieve Source from Org12force:source:retrieve:metadata:base "ApexClass, ApexPage, ApexComponent, ApexTrigger, LightningComponentBundle, AuraDefinitionBundle, CustomObject"

Create Apex, Trigger, Aura LWCcreate apex12345 [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.

12345public with sharing class Hello1 {public Hello1 () {System.debug ('hello world') } Deploy Source from Org1234567 [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 SourceFULL NAME TYPE PROJECT PATH ─── Hello1 ApexClass force-app\ main\ default\ classes\ Hello1.clsHello1 ApexClass force-app\ main\ default\ classes\ Hello1.cls-meta.xml

Document

Know more sfdx command.

The office document about

Salesforce CLI Command Reference

Salesforce CLI.

Sfdx base command

List12sfdx force:alias:listsfdx force:org:listSFDX: Create Project with Manifest1sfdx force:project:create-n ProjectNameSFDX: Authorize an Org1sfdx force:auth:web:login-- setalias MyDevOrg-- setdefaultusernameSFDX: Retrieve Source from Org12sfdx force:source:retrieve-- manifest. / manifest/package.xmlsfdx force:source:retrieve-- metadata ApexClass, ApexPage, ApexComponent, ApexTrigger, LightningComponentBundle, AuraDefinitionBundle CustomObject "SFDC: Deploy Source to Org12sfdx force:source:deploy-- json-- loglevel fatal-- sourcepath. / force-app/main/default/classes/APEX_NAME.clssfdx force:source:deploy-p. / force-app/main/src

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report