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
1
vote
0answers
34 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 ...
1
vote
1answer
27 views

How to retrieve metadata to a custom folder by using default method "Retrieve Source in Manifest ORG" in Visual Studio?

In my ORG I didn't add to repository the default folders like so It was done like the following image: That is, the root files starts in src/ folder instead of force-app/main/default/* It brings ...
0
votes
2answers
59 views

SFDX commands not able to work in VS Code

SFX command is not able to load or use any one of them and throws the following error Command 'SFDX: Authorize an Org' resulted in an error (command 'sfdx.force.auth.web.login' not found) I tried to ...
2
votes
0answers
84 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=./...
0
votes
1answer
33 views

Push custom object and custom metadata type to scratch

So i retrieved custom metadata type and just custom object from my org via Ant Migration tool. After i createad a sfdx project. created scratch org and used push. It gives me error: 'Must specify a ...
1
vote
3answers
351 views

No AuthInfo found for name always

Is there a way to full reinstall sfdx? How to delete settings? I am creating an sfdx project, auth in org and with retrieve command i am getting No AuthInfo found for name with name of another org ...
0
votes
2answers
110 views

Open existing Aura Component in VS Code

I am new in VS Code Salesforce extension and I would like to ask if any way exist to open and edit Aura Components from VS Code. I already learned how to create new and deploy them and now need to ...
1
vote
1answer
97 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 ...
0
votes
0answers
13 views

Cannot read property 'category' of undefined custom rule of eslintrc.json

I have gone through Scanner commands after insatll sfdx scanner plugin, while executing below command sfdx scanner:run --engine 'eslint-lwc' --format html --target delta\metadata\lwc\ -o delta\...
0
votes
1answer
120 views

How to export import JSON data for objects with record types using sfdx command [duplicate]

I wanted to export the objects data with record types from one scratch org to another scratch org. I tried with this command: > sfdx force:data:tree:export -q c:/soql/cObject.soql -u SourceOrg -p -...
1
vote
1answer
45 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 ...
0
votes
0answers
60 views

sfdx plugin installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for ...
0
votes
0answers
29 views

Cannot deploy source code despite it being correct and getting no errors

I am trying to deploy my code to the org (authorized in IDE of course), but the SFDX: Deploy Source to Org command fails. In the terminal, the only thing I see is === Deploy Errors 14:40:39.217 ended ...
1
vote
1answer
22 views

Debugging No Longer Works for DX CLI

Lately in VS Code, my custom DX CLI plugin is no longer stopping when using the --dev-suspend flag, and the commands just run like normal. Breakpoints are no longer being hit when using the flag. ...
1
vote
0answers
88 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:...
0
votes
1answer
68 views

Getting error: cannot spawn .husky/pre-commit: No such file or directory when trying to commit, previously ran npm install

I'm having this issue with my computer when trying to commit. This happens after I run npm install for a recently created project. Thanks in advance. P.S.: I'm posting here cuz I couldn't find ...
0
votes
1answer
55 views

Value of sfdcLoginUrl in sfdx-project.json doesn't seem to matter

I'm working on a Salesforce Lightning App project in Visual Studio Code (w/ Salesforce extension), and when I right click on a file and choose "SFDX: Deploy This Source to Org", it deploys ...
0
votes
1answer
157 views

Avoid strange error 'The "path" argument must be of type string. Received null', when fthe path is not null

When I execute the command sfdx force:source:deploy -u o14 -p CPQFields I receive an error The "path" argument must be of type string. Received null, despite the path CPQFields is not null ...
0
votes
0answers
38 views

SFDX Plugging Debugging in VS Code

I'm working on a DX CLI plugin using VS Code. My work machine just upgraded my VS Code install to v 1.56.2. Previous version I had wouldn't even start the remote debugger. Now the remote debugger will ...
1
vote
2answers
144 views

sfdx command for Salesforce Functions is not working

When i execute command sfdx help function it throws error below » Error: command function not found I am following video https://www.youtube.com/watch?v=2XzaJ0TNwvo SFDX Version - sfdx-cli/7.105.0 ...
0
votes
0answers
20 views

Is there a way to create Trace Flags for certain user using SFDX?

I'm just tired of manually setting trace flags on my org. My question is, is it possible in any way to create trace flags using SFDX? Or is there any APEX script to create these trace flags for ...
0
votes
1answer
30 views

sfdx export products and related custom object

I have a custom object, myObject__c and on the Product2 object we have a field (Product2.myObject_lookup__c) that is a lookup to the myObject__c object. I need to export the relationship between ...
0
votes
0answers
398 views

SFDX-Git-Delta plugin not finding differences between branches in github action

I have my yml file for my github action set up like this: name: Test Deploy Delta on: push: workflow_dispatch: jobs: build: runs-on: windows-latest steps: - name: Check out repository code ...
1
vote
1answer
41 views

SFDX Plugin Development tutorial

I am following this tutorial: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_generate_scaffold.htm I have followed in exactly down as far is the ...
3
votes
1answer
42 views

SFDX Script to copy all installed packages from one org to another one?

I have a specific error which depends on the packages installed in environment, to reproduce this error on the developer org, I need all the installed packages to install into development org. Can I ...
0
votes
0answers
38 views

show list of account record on clicking in checkbox and delete the selected account and refresh list

I want to show account record on checking a checkbox and delete the selected record and refresh list but I am getting errors. duplicate value found: duplicates value on record with id: Cannot find ...
0
votes
1answer
107 views

Can I run SFDX commands on a button click?

Is it possible to run SFDX commands on some UI events? If so, like we have used a Node.js application for it as SFDX commands are Node.js based. Are there any packages which we can install and use? ...
0
votes
0answers
127 views

Receiving error No base file for markup://c:DesignLwcDemo while deploying this to org

I am getting error No base file for markup://c:DesignLwcDemo while deploying this to org <template> <lightning-card title="Design Attribute" icon-name="custom:custom5">...
4
votes
2answers
264 views

How do you install a sfdx plugin with npm and package.json?

I'm trying to install a sfdx plugin, and the only install instructions I can find are sfdx plugins:install plugin-name. With modern development practices, we define our project's Node development ...
1
vote
0answers
856 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
248 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
126 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
42 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
215 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
49 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
134 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
301 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
61 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
16 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
446 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
235 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
51 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
50 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
420 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
2answers
853 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
338 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
2k 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
1answer
146 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
126 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
40 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 ...