Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
28 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 sfdx-cli@7.143.0) because of some node dependencie s- atm I cannot ...
user avatar
0 votes
0 answers
69 views

Error authenticating with auth code due to: self signed certificate in certificate chain

I am getting below error when try to authorize any org in the VS code. Error authenticating with auth code due to: self signed certificate in certificate chain After spending significant amount of ...
user avatar
  • 2,225
0 votes
0 answers
27 views

Support for React Native on Android Mobile SDK ^ 8.0.0

Is there any deadline, or estimative, for a React Native plugin new version, using at least 8.x versions of the Android Marketing Cloud SDK (which supports Android API version 31)? https://salesforce-...
user avatar
0 votes
0 answers
19 views

SFDX cli error thru VS code

Getting intermittant error on running SFDX cli commands thru VS code 14:15:50.351 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername C:\...
user avatar
0 votes
2 answers
91 views

Reusable Bitbucket pipeline for testing

I am new to bitbucket pipeline and I am trying to build a bitbucket script where when a PR is merged to master branch it checks if there is an active scratch org or not. If an active scratch org ...
user avatar
  • 11
0 votes
1 answer
68 views

How to inactivate a validate rule using SFDX command

Is there any way that we can inactive/deactivate a validation rule using SFDX command? I have researched completely. And I thought that force:source:deploy would help, but it seems to be a little ...
user avatar
  • 13
1 vote
1 answer
57 views

VS Code: Commands run through Command Palette (CMD+Shift+P) won't show in Output

I could be mistaken here, but earlier when I used to use VS Code and the SFDX CLI plugins through the Command Palette (i.e. Command + Shift + P) to kick off a process (deploying code, retrieving code ...
user avatar
  • 13
1 vote
1 answer
52 views

SFDX: is there a command to retrieve an inbound change set?

There is an SFDX command to retrieve outbound change sets from an org. This command works great for that: sfdx force:mdapi:retrieve -s -r ./desiredDirectory -u <username> -p <change set name&...
user avatar
  • 113
1 vote
1 answer
122 views

Update sfdx package in bitbucket pipeline

I'm working on a pipeline to package and deploy sfdc code. I'm attaching the script. # CI process for SFDX image: radon57/sfdx-cli #image with sfdx installed definitions: steps: - step: &...
user avatar
  • 129
1 vote
0 answers
37 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 ...
user avatar
0 votes
1 answer
151 views

RecordTypeId not getting uploaded from csv file to Salesforce org using SFDMU tool. Error: Value does not exist or does not match filter criteria

I am using SFDMU tool (Salesforce Data Loader SFDX Plugin) to upload csv data files to a target salesforce org. I have 3 records A, B and C in an object in a hierarchy. Record B is in a self-lookup ...
user avatar
1 vote
0 answers
27 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 ...
user avatar
  • 101
1 vote
1 answer
178 views

Any way to fix this out of memory error installing @salesforce/sfdx-scanner?

We run our CI (Continuous Integration) build for our app using GitHub actions and part of that is to install and run the Salesforce CLI Scanner. We run on ubuntu-latest that is documented to have &...
user avatar
  • 129k
0 votes
1 answer
1k views

How to retrieve email alert used in flow in VS?

I have created an email alert which is being used in flow. I am trying to retrieve that email alert in VS code, using sfdx force:source:retrieve -m workflowAlert command. But I am not able to retrieve ...
user avatar
1 vote
0 answers
53 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 ...
user avatar
  • 1,410
1 vote
1 answer
39 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 ...
user avatar
0 votes
2 answers
91 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 ...
user avatar
  • 115
2 votes
0 answers
275 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=./...
user avatar
0 votes
1 answer
311 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 ...
user avatar
1 vote
4 answers
1k 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 ...
user avatar
0 votes
2 answers
722 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 ...
user avatar
1 vote
1 answer
442 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 ...
user avatar
  • 304
0 votes
0 answers
17 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\...
user avatar
0 votes
1 answer
736 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 -...
user avatar
  • 235
1 vote
1 answer
73 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 ...
user avatar
0 votes
0 answers
89 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 ...
user avatar
0 votes
0 answers
34 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 ...
user avatar
1 vote
1 answer
49 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. ...
user avatar
1 vote
0 answers
354 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:...
user avatar
0 votes
1 answer
100 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 ...
user avatar
  • 232
0 votes
1 answer
209 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 ...
user avatar
  • 461
0 votes
1 answer
366 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 ...
user avatar
  • 13.2k
0 votes
0 answers
76 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 ...
user avatar
1 vote
2 answers
309 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 ...
user avatar
1 vote
0 answers
26 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 ...
user avatar
  • 332
0 votes
1 answer
79 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 ...
user avatar
1 vote
1 answer
994 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 ...
user avatar
  • 2,319
1 vote
1 answer
67 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 ...
user avatar
  • 611
3 votes
1 answer
100 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 ...
user avatar
  • 13.2k
0 votes
1 answer
225 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? ...
user avatar
  • 1,516
0 votes
0 answers
159 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">...
user avatar
4 votes
2 answers
492 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 ...
user avatar
  • 1,151
1 vote
0 answers
2k 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 ...
user avatar
  • 315
0 votes
1 answer
673 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 ...
user avatar
  • 17
1 vote
0 answers
238 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-...
user avatar
  • 405
0 votes
1 answer
81 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 ...
user avatar
  • 461
1 vote
1 answer
363 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 ...
user avatar
0 votes
2 answers
134 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 ...
user avatar
0 votes
1 answer
260 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, ...
user avatar
3 votes
1 answer
563 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 ...
user avatar