Questions tagged [sfdx-plugin]

A plug-in adds functionality to the Salesforce CLI. Some plug-ins are provided by Salesforce and are installed by default when you install the CLI. Some plug-ins are provided by third parties and can be installed locally. When you have a requirement that an existing plug-in doesn’t meet, you can build your own.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

VSCode deploy source to org failed to run

Starting today VSCode is giving me an error "SFDX: Deploy Source to Org failed to run". This only happens with 1 org. with every other org I do not have any issues. I don't get any error ...
0
votes
1answer
31 views

sfdx push returning No Results found on scratch org

sfdx push a fake class to scratch org is returning no results found. I have a scratch org built on production org shape. Here is the list of actions I tried, sfdx deploy first followed by creating a ...
0
votes
0answers
24 views

View LWC Locally / Install LWC dev Mobile Plugin Error

Aim: To preview LWC component locally. Problem : NOT able to install sfdx plugins:install @salesforce/lwc-dev-mobile NPM Version: 7.7.6, NODE Version: v15.13.0, SFDX Version: sfdx-cli/7.92.0-...
0
votes
1answer
17 views

Is it possible to remove metadata by installing a newer version of an unlocked package?

I have a sandbox that has some meta data such as custom objects, permission sets, profiles, classes, and remote site settings that need to be removed. The sandbox also has an unlocked package ...
1
vote
1answer
56 views

SFDX CLI plugin dev, after running cant find node modules

I am new to SFDX plugin development. I have a node CLI tool I am trying to integrate into the SFDX CLI. I have added my js file with node modules to the directory src/commands/digitsec/s4/ When I run ...
0
votes
2answers
36 views

SFDX - Identify tests for a specific class

I am working on a github action that is supposed to validate a "delta" package of changes in a merge request in a target sandbox. For this validation process i am not supposed to run all ...
0
votes
1answer
45 views

Why are my recordtypes not being updated, they are going into the wrong folder

I have a CLI situation whereby the recordtypes I make changes too are not being updated on a retrieve. I cannot find flaws in my process, I change the connected org correctly my XML has the fields, ...
3
votes
1answer
92 views

SFDC CLI - Connected Status - Unknown

Suddently my orgs are with connected status unknown, like the image below, even though I can authorize my DevHub Org without any problem I could not find any possible solution: Even with a new ...
0
votes
1answer
38 views

sourcePathInfo.getPendingPathInfo is not a function error in source pull/push deploy/retrieve

I have updated to the latest sfdx-cli and salesforcedx and I cannot use the source commands anymore. I am using sfdx installed using npm instead of the stand-alone one. I have raised an issue in ...
2
votes
0answers
14 views

Suppressing load of sfdx.js in VS Code in debug mode

When you develop a plugin for the SFDX CLI and use the --dev-suspend flag at the end of your command in a VS Code terminal, the first thing that is loaded is a new document that contains the core sfdx....
3
votes
4answers
324 views

Errors running sfdx force:org commands [getNumber is not a function]

Since this morning, when I try to run sfdx force:org:* commands, I get the error : TypeError: (intermediate value).getNumber is not a function Yesterday everything worked fine and I did nothing else ...
0
votes
0answers
58 views

Is there a way to stop LWC Local Development Server to auto refreshing when component file change?

LWC Local Development Server auto refreshes page whenever any LWC component files change. Sometimes I change JS code but I'm not finished with it, I need to go back to console to refer the console ...
1
vote
1answer
19 views

How do I download & setup Git Bash, for Windows & VSCode?

I don't know where to get GIT Bash from and how to set it up. I am asking because the answers were not found or not obvious, install was a bit of an unknown, hence this might help someone else, so I ...
0
votes
0answers
41 views

Visual Studio Code, SFDXError with retrieve for Aura and LWC

since yesterday I started having an issue when I try to use the command SFDX:retrieve source from Org on Aura or LWC items. The command fails and I receive this error message: Also, I noticed that If ...
2
votes
1answer
130 views

unable to install sfdx scanner plugin

i am trying to install sfdx scanner. its giving me this error. anyone knows this below error warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" ...
1
vote
1answer
98 views

How do I retrieve all files in VS Code?

I'm working on the Apex Specialist super badge on the Salesforce Trailhead. I'm also trying to get more comfortable with Visual Studio Code with the Salesforce extensions. I've successfully create a ...
1
vote
1answer
181 views

Node version error during Salesforce DX pre-release plugin installation

When installing the Salesforce CLI with the Spring '21 pre-release Salesforce DX plugin, I'm getting an incompatible node version error. This command: sfdx plugins:install salesforcedx@pre-release ...
1
vote
2answers
592 views

ERROR running force:source:deploy: This command is required to run from within an SFDX project

I am trying to use GitHub actions to deploy code to my developer org. While running the workflow i am getting error like. I am unable to figure where it is wrong Below is the structure in github. ...
0
votes
0answers
45 views

SFDX: Authorise an Org not working

I am trying to authorise an org using VS Code but keep getting the following sfdx force:auth:web:login --setalias jandev21 --instanceurl https://test.salesforce.com --setdefaultusername Unexpected ...
0
votes
1answer
47 views

ApexPages.currentPage().getParameters() Method does not exist or incorrect signature

I use VS Code with Salesforce Extension Pack. I have this line in my class code: string cId = ApexPages.currentPage().getParameters().get('cId'); It gets a squiggle line under getParameters() and a ...
0
votes
0answers
33 views

Errors in standard object definitions

I use VS Code with Salesforce Extension Pack. I have created SFDX project with manifest; authorized my sandbox org; then refreshed sobject definitions (tools-sobjects-standardObjects). This gives me ...
1
vote
1answer
147 views

Invalid fullName, must end in a custom suffix(for ex. __c) CustomObject[1,1]

I am trying to push the code to my DX project and getting the above error on standard objects like Quote, QuoteLineItem, Recommendation and SignupRequest. I tried adding the solution provided in this ...
0
votes
1answer
42 views

Sfdx vs code Extension causes high cpu load

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.51.1 . Authorize an Org : Redirecting to Browser but after logining in the ...
3
votes
2answers
549 views

Deploying Profiles and Fields with SFDX in VSCode

We're deploying from Stage to Prod via VSCode and package.xml. We're concerned of overwriting certain existing Profiles on Production. We haven't updated Stage from Prod in too long. We still need to ...
2
votes
1answer
63 views

DX CLI - Plugin Install vs. Plugin Link

I'm able to install a custom plugin globally via npm i -g @somescope/myplugin then change into the directory where the package is globally installed and can run sfdx plugins:link and all my custom ...
1
vote
0answers
191 views

VS Code - SFDX: Retrieve Source From Org > WARNING: Infinite loop detected [closed]

Summary SFDX: Retrieve Source From Org (sfdx force:source:retrieve) throws the error WARNING: Infinite loop detected. Steps To Reproduce: From manifest\package.xml launch SFDX: Retrieve Source From ...
0
votes
0answers
48 views

Running Unit Test from VS Code Got: ERROR running force:apex:test:run: Cannot read property 'message' of undefined

I am facing the following issue when I run a UnitTest using VS Code. For instance: sfdx force:apex:test:run --tests ServiceTest --resultformat human --outputdir /salesforce/.sfdx/tools/testresults/...
0
votes
1answer
64 views

Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings

I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc. But, it did not retrieved many records ...
2
votes
2answers
43 views

Where did the type ahead menu for CSS SLDS classes go?

In VSCode, there used to be a type ahead window with suggestions of SLDS classes when you start to create one. This menu no longer appears for me. For example when I would type <span class="...
1
vote
1answer
28 views

SFDX - Cannot find messages folder on npm run prepack

In my environment we cannot use yarn to do a prepack on a custom dx plugin. So, we are trying to do the equivalent of yarn prepack with npm run prepack In the latter case, the typescript compiler ...
0
votes
0answers
47 views

Vs code Sfdx Authorize org failed after update

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.50.1 . I'm unable lo authorize to dev hub . I have uninstalled multiple times ...
2
votes
2answers
247 views

SFDX: command to retrieve Compact Layout from Source org to Visual Studio Code

I want to retrieve Compact layout to visual studio code from the source org. Currently I'm using following command. sfdx force:source:retrieve -m "CompactLayout:Lead-English Courses" But ...
1
vote
0answers
79 views

sfdx:force:package:installed:list is throwing TIMEOUT error

Summary force:installed:list command is throwing time out error as Your query request was running for too long. Steps To Reproduce: 1.ScratchOrg is created 2.Installed two packages with packageID ...
0
votes
0answers
64 views

Getting an error while creating unlocked package with --codecoverage option in salesforce

As per the current requirement new versions of packages can be created only buy running the sfdx force:package:version:create with --codecoverage option, however I am getting an exception related to ...
5
votes
4answers
2k views

Error running command sfdx.force.source.retrieve.component: data.forEach is not a function

Not able to download all the classes / triggers / LWC's or anything using the ORG Browser. This is kind of a annoying issue as I cannot keep on downloading only and only the classes I require. Any ...
0
votes
1answer
56 views

Channel Program object is not available in scratch org

I'm creating a Scratch Org. Following is my command. sfdx force:org:create -f config\project-scratch-def.json --setalias My-Scratch-Org --durationdays 30 --setdefaultusername --json But then once the ...
3
votes
0answers
289 views

SFDX: Get Apex Debug Logs returns “undefined”

This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
2
votes
1answer
336 views

SFDX is not recognized as an internal or external command on VS Code

I'm doing some Trailhead challenges that require me to download Salesforce CLI and SF Extension Pack on VSC. I've already downloaded both (as well as Java). I've added Java and SFDX to PATH yet I keep ...
10
votes
1answer
568 views

sfdx plugin installation crash: TypeError: Cannot read property 'dim' of undefined

Since today, my docker image crash because sfdx plugins:install seems to crash I tried with 2 different plugins, and the result is the same I also tried on Windows: same crash $ sfdx plugins:install ...
2
votes
3answers
163 views

Unable to run custom hello world SFDX plugin locally

I followed the instructions mentioned in the documentation: Scaffold a Salesforce CLI Plug-In. After generating the boilerplate code with command: sfdx plugins:generate hello, I got the project as ...
1
vote
1answer
242 views

Issue with setting default org in VSCode

I am trying to set a default org in VScode but it is not working. I get a Cannot read property 'getInstance' of undefined error. ERROR running force:auth:web:login: Cannot read property 'getInstance' ...
2
votes
2answers
195 views

SFDX Best practices for managing custom objects?

We would like to use the SFDX Cli to version our custom objects in a Git repository. For now, because we're new to SFDX and our codebase will be small, we want a single sfdx app. We currently have ...
1
vote
0answers
14 views

SFDX Command Executor Not Found

With a custom plugin I've written, whenever I try to run one of my plugin commands, I always receive the following: (node:14344) Error Plugin: mypluginname: command executor not found module: @oclif/...
0
votes
0answers
46 views

Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined)

Facing below error when I am trying to deploy LWC from VS Code Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined) Steps to generate error: ...
0
votes
1answer
121 views

405 When trying to install custom plugin from internal Github

I have a custom DX plugin hosted on an internal GitHub Enterprise repo. When I try and run sfdx plugins:install git@github.mycompany.com:myusername/my-repo.git it returns: (node:18800) Error Plugin: ...
6
votes
1answer
500 views

Deprecated or invalid utility class SLDS

I have been trying to use SLDS in LWC. However, I am noticing these issues recently. The same style classes were working before without any issues. Does anything worng with my VS code or is really ...
2
votes
0answers
192 views

Specifying individual CustomField in package.xml (vscode) does not deploy to Org, but when retrieving by object it does?

When retrieving CustomFields in package.xml by specifying: <types> <members>ObjectName.FieldName__c</members> <name>CustomField</name> </types> They retrieve ...
1
vote
2answers
432 views

SFDX: How to log in by session id and session url

We are writing a nodejs application which should execute some set of actions against SF org triggered by incoming http request coming from that org. Such request will contain base url and session id ...
1
vote
1answer
189 views

Running Anonymous Apex error: This org has reached its daily usage limit of apex log headers

I am running updates via sfdx commands by sending an .apex file. The command looks like this: sfdx force:apex:execute -f <myFile.apex> <my_org_credentials> After running 1000 of these, I ...
1
vote
0answers
72 views

How ignore Entitlement Process in Salesforce DX CLI?

I tried many times to ignore the Entitlement process (with versioning enable) and was unable to do it. All Scratch organizations that I created, after the first push, the first pull return many errors ...