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.

88 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
61 views

@salesforce/core ConfigAggregator resolving config file from VSCode root folder

I'm writing a simple VSCode extension to interact with Salesforce Orgs and I want to leverage @salesforce/core v3 features. From what I read from ConfigAggregator documentation: Aggregate global and ...
PCar's user avatar
  • 41
3 votes
0 answers
2k 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 ...
coreyperryisasaint's user avatar
3 votes
0 answers
277 views

DX CLI - Cant find Error after moving a folder

I recently took a folder on my desktop and made it the child of another folder, and now get the following error message when running commands in the CLI: (node:13468) Error Plugin: sfdx-cli: could not ...
trebleCode's user avatar
2 votes
1 answer
254 views

Assert not available in VSCODE

The Assert class does not appear to be available in VSCODE with extensions installed. While I can still use the class and its methods with no errors on Push , the editor complains about it and there ...
Ricardo da Silva's user avatar
2 votes
1 answer
537 views

sfdx plugins are not getting installed via docker

We are using below script to install sfdx plugins on top of Jenkins via below docker file. FROM jenkins/jenkins:2.263.3 USER root RUN mkdir /.cache /.sf RUN chown jenkins.jenkins /.cache -R RUN ...
Rajendra Singh Nagar's user avatar
2 votes
0 answers
168 views

sfdx-cli convert - SyntaxError: Unexpected token '.' post rollback

today I updated the sfdx-cli from version 7.143.0 to version 7.149.1; then I had to revert back (I performed an npm install --global [email protected]) because of some node dependencie s- atm I cannot ...
calibro22's user avatar
2 votes
0 answers
192 views

Failure performing sObject describe connect ETIMEDOUT

I have started using VScode for my salesforce development , while i could setup my application in the IDE and retrieve all the necessary code. I find i'am unable to refresh standard object. but i can ...
Akash Jain's user avatar
2 votes
0 answers
1k views

Unable to convert Reports from sfdx sources to metadatas - force:source:convert / force:source:deploy

For some time now, we have issues to deploy items that are defined in folders (Reports, emails, documents...) Problem: Unable to convert Reports from sources to metadata Command: MD_API_TEMP_FOLDER=./...
Nicolas Vuillamy's user avatar
2 votes
0 answers
1k views

How to retrieve Salesforce reports (in a subfolder) using VS Code

How can we retrieve SF reports in visual studio code, I have tried below options: 1). Using manifest.xml -> Nothing happened, no reports extracted and no error shown either. 2). Using sfdx force:...
sunil gupta's user avatar
2 votes
0 answers
27 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....
trebleCode's user avatar
2 votes
2 answers
2k 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 > [email protected]" ...
sfdc_to_learn's user avatar
2 votes
0 answers
2k 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 ...
realtek's user avatar
  • 163
2 votes
0 answers
126 views

SFDX versioning error for leadsource field

I have account,contact, opportunity,case and lead in my unlocked package. For case entitlements,multicurrency fields (ex. currencyisocode, slastartdate, entitlementid etc.) I have added ""features": [...
Raj SF's user avatar
  • 327
2 votes
1 answer
496 views

Automating scratch org with sfdx plugins

I have been looking to automate the process of creating a scratch org, pushing source (metadata), assigning the permission sets, resetting the password, open the org and much more. After doing some R&...
d_k's user avatar
  • 1,280
2 votes
5 answers
4k views

Project is not created after running SFDX: Create Project in VS Code

I have issue while creating a project using either SFDX: Create Project or SFDX: Create Project with Manifest command. I don't receive any error but the project is not created. The variable path is ...
fawad khan's user avatar
2 votes
0 answers
208 views

SFDX occasionally fails decryption on all my authorized orgs, causing me to re-auth them all

I have been using SFDX for the last couple years as a way to log into seperate orgs easier. Every once and a while, I will load up terminal and try to log into an org, only to get this error: ERROR ...
Toby Curtis's user avatar
2 votes
1 answer
53 views

How do I display more characters when debugging SFDX code?

I have variable in my code defined as follows: String myString = myConfig.my_field_name__c; When debugging in the SFDX console (in VS Code), the variable's value is only displayed as: myString: '...
WEFX's user avatar
  • 259
1 vote
0 answers
147 views

TypeError: this.config.plugins.filter is not a function - sfdx package install command not working

I have updated the salesforce CLi with latest version 2.21.8. After that, i am installing the packing using sfdx package install commpand but i am getting below error. Warning: Plugin @salesforce/...
Kishan Vadaliya's user avatar
1 vote
0 answers
801 views

VS Code - Authorize An Org - Failing on SFDX command

I recently started getting an error when trying to authorize an org using the Salesforce extension in VS Code. This is the error I am getting: sfdx org:login:web --alias PackagingOrg --instance-url ...
James's user avatar
  • 337
1 vote
0 answers
90 views

Error pushing code to the scratch org using DX command in the CI/CD pipline

I have set up a ci/cd pipeline using Jenkins. I am running a couple of commands using the Jenkins file. The commands like creating a scratch org, generating a password for the scratch org, converting ...
Aman Jain's user avatar
  • 121
1 vote
0 answers
135 views

capture sfdx command errors

One could call a sfdx command from a salesforce sfdx plugin, for example: import Report from "@salesforce/plugin-apex/lib/commands/force/apex/test/report"; ... export default class ...
Cuban coffee's user avatar
  • 1,542
1 vote
1 answer
1k views

SFDX Custom Metadata commands

When I am executing sfdx command to generate custom metadata from custom settings object, I receive error No sObject with name My_Existing_Object__c found in the org. However object/custom setting is ...
Amit's user avatar
  • 344
1 vote
1 answer
375 views

SFDX command in VS Code have improper

I use the Ctrl+Shift+P to run a Create a new Apex class command. However, I the a pop-up with an error message saying that command sfdx.force.project.create was not found. The problem is that somehow ...
sfentrydev's user avatar
1 vote
0 answers
506 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-...
user43598's user avatar
  • 457
1 vote
1 answer
1k 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 ...
The Traveling Coder's user avatar
1 vote
1 answer
314 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 ...
TheArchitecta's user avatar
1 vote
1 answer
122 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 ...
trebleCode's user avatar
1 vote
0 answers
392 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 ...
Vijaykumar's user avatar
1 vote
0 answers
30 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/...
trebleCode's user avatar
1 vote
0 answers
231 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 ...
Leonardo P Macedo's user avatar
1 vote
0 answers
263 views

SFDX error for external objects

I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below: 1. Invalid type: Schema....
Raj SF's user avatar
  • 327
1 vote
1 answer
3k views

ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code

I am trying to push the code to my scratch org through VS Code using following command - sfdx force:source:push --json --loglevel fatal But getting following error on VS Code. ERROR_HTTP_414" - "...
Shrivaths Kulkarni's user avatar
1 vote
0 answers
3k views

SFDX: Create Project failed to run

Facing problem to complete this trailhead trail ( https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code) I have installed Salesforce ...
mountainrog's user avatar
1 vote
1 answer
491 views

SFDX plugin to generate Apex classes from Swagger file is failing to install

I'm trying to install this plugin https://github.com/muenzpraeger/sfdx-plugin , due to some reason it is failing. Please let me know if there is any other way that i can generate classes using swagger ...
vraavi's user avatar
  • 335
1 vote
0 answers
161 views

Testing custom salesforce plugin

I am currently trying to test a custom salesforce plugin which deploys a payload to a specific org. The plugin itself is coded in typescript and the unit tests are using mocha/chai. I am running ...
Nicole Phillips's user avatar
1 vote
0 answers
46 views

Salesforce DX vs. Einstein Discovery Stories and Models

I am currently developing an app containing Einstein Discovery elements in a scratch org. When pulling the source code using sfdx, the story and models built are not included, as well as the Write ...
david_zrh's user avatar
1 vote
0 answers
827 views

SFDX and Puppeteer

I am trying to use puppeteer in conjunction with the DX CLI. While I can easily created a puppteer object with something like: const puppeteer = require('puppeteer'); void (async () => { try ...
trebleCode's user avatar
1 vote
0 answers
2k views

sfdx Invalid Cross Reference id pushing app to scratch org

When I attempt to push my sfdx project to the source, I've been having issues with the app metadata files. Download content assets via XML source pull. Add MasterLabel to the app metadata brand in ...
thinker's user avatar
  • 1,402
1 vote
1 answer
611 views

SFDX hello:org plugin not available when installed from npmjs

I've create a SFDX Plugin with sfdx plugins:generate. When the plugin is linked using sfdx plugins:link . the command hello:org is available and work properly. When this same plugin is deployed to ...
Saulo's user avatar
  • 957
1 vote
0 answers
183 views

SFDX ORG shape with PROD metadata

Our company PROD ORG is a big monolithic application with heavy tangled apex code and metadata. We are about to introduce some more apps in the near future and I personally wanted to follow the ...
speruri's user avatar
  • 93
1 vote
0 answers
35 views

SFDX create definition from a dev org

I am wondering if there is a way to create the sfdx scratch org definition straight from a dev org. i am aware of shape and snapshot however these are in pilot and what i am hoping for is something ...
TimChadwick's user avatar
0 votes
0 answers
31 views

Rollback(Back Promote)Changes through SFDX-Git-Delta deploy

Branching Strategy: In our project we have 3 main branches: Main, UAT & QA & we are using SFDX-Git-Delta plugin (SGD) deploy to promote incremental changes. Developers promote changes to ...
Rose 's user avatar
  • 121
0 votes
0 answers
16 views

Retrieve enhanced List views for Flows via metadata API?

Currently, whenever we retrieve an object via sfdx, whether custom, standard or cmtd, it will retrieve the list views too. However, I cannot seem to find the correct metadata folder or xml which ...
vio's user avatar
  • 9
0 votes
1 answer
45 views

Getting error while installing sfdx scanner plugin

Getting below error while installing sfdx scanner plugin: Installing plugin @salesforce/sfdx-scanner... / info There appears to be trouble with your network connection. Retrying... error An unexpected ...
Velu's user avatar
  • 1
0 votes
0 answers
173 views

Cannot install @salesforce/lwc-dev-server

When running sfdx plugins:install @salesforce/lwc-dev-server on Sonoma 14 OSX, it returns either: Warning: @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead Error: /usr/...
number41's user avatar
  • 948
0 votes
1 answer
508 views

Issue while Authorizing Org to VS Code though two of my org are already connected to VS Code

Can anyone please help?! I am unable to do Authorize org with VS Code. I have two orgs that are already authorized with VS Code, but I am not able to authorize a new org. It's throwing an error though ...
Puja's user avatar
  • 1
0 votes
0 answers
214 views

Unable to Deploy or Retrieve source from any ORG

I'm facing an issue while trying to retrieve source code from a package.xml file within our organization. This problem has persisted since last year, despite my attempts to resolve it by both ...
GraNeMM's user avatar
  • 11
0 votes
0 answers
193 views

VS Code sfdx-scanner installation error related to SSL

I am trying to install Salesforce sfdx-scanner for VS code on my office laptop as per the below guideline Install and Update Salesforce Code Analyzer. I checked some of the issues related to sfdx-...
Rachit's user avatar
  • 177
0 votes
0 answers
773 views

I encountered an error with Apex PMD while using VS Code

Static Analysis Failed. Error Details: PMD Command Failed! Enable "Show StdErr" setting for more info. I already enable this setting inside vs code but still getting same error
Rohit Kumar's user avatar
0 votes
0 answers
79 views

Jenkins sfdx jwt login issue

So we're using Jenkins to integrate between our Salesforce environments and having an issue with one job in particular. The job copies the code base from our production environment and sends the ...
Finnster's user avatar