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
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 ...
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 ...
4 votes
2 answers
2k views

VS Code SFDX Unit Tests: Cannot see "Run Test" or "Run All Tests"

At some point in the last week I found that I can no longer see the following prompts at the top of already working unit tests in VS Code Run All Tests Run Test | Debug Test While this is absolutely ...
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 ...
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/...
0 votes
2 answers
2k 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
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" - "...
2 votes
2 answers
2k views

Error on secret-tool for sfdx force:auth:jwt:grant

We are trying to Setup CI-CD for our Org. However, while sfdx force:auth:jwt:grant on Jenkins, we are gettig the below error. Same command is working fine from local of 2 - 3 people. Jenkins is ...
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/...
4 votes
2 answers
8k views

Can Not Update SFDX

I am running into an error when I am trying to update my SFDX version in my cli and I am unsure what it means. Olivias-MacBook-Pro:test op$ sfdx update › Warning: Use "npm update --global sfdx-...
0 votes
1 answer
850 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 ...
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 ...
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 ...
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]" ...
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 ...
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 ...
6 votes
2 answers
835 views

sfdx push Error - Custom Index - property 'booleanIndexedValue' not valid in version 56.0

When we try to push our existing code into the scratch org we are getting below error, =============================================================================== ──────────────────────────────────...
0 votes
2 answers
448 views

sfdx scanner - Install problem

I have installed:- Visual Studio Code Version 1.80.1 on Windows 11 "C:\Program Files\Java" with directories: jdk-17.0.5 jdk-20 and jre-1.8 VS Terminal Command: sfdx update completed ...
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 ...
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 ...
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-...
0 votes
1 answer
137 views

Is there a way to generate sfdx auth url for scratch org if devhub is authorized using the jwt bearer flow?

In our CICD pipelines, we used to authorize devhub first using sfdx auth url and then create scratch orgs using same devhub. We use the command "sfdx force:org:display --verbose" to get the ...
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
2 votes
2 answers
4k views

Why ContentAssets Deployment creating "No Network Named" issue?

I am trying to migrate community configurations from one scratch orgs to another. Everything works fine except ContentAsset. I am getting the following error:- PS E:\Projects\xxxxx-build test> ...
-1 votes
1 answer
238 views

How can I store SGD delta package with bitbucket pipeline

I'm using SGD for my salesforce deployment using Bitbucket pipeline. sfdx sgd:source:delta --to HEAD --from HEAD^ It is working however I want to store/see content(package) of metadata to be deployed. ...
1 vote
3 answers
13k 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 ...
6 votes
1 answer
517 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 ...
3 votes
3 answers
6k views

Scratch org: how to retrieve metadata

Scratch org: how to retrieve metadata I am probably missing some concepts, but this are the steps that I have follow to create a new scratch org from a developer edition org. Created a new dev org ...
3 votes
3 answers
4k views

Error while Authorizing an ORG using VS Code Cannot read properties of undefined (reading 'setContentsFromObject')

Created a New Project in vs code SFDX- Create Project SFDX-Authorize Org when i try to i get error Cannot read properties of undefined (reading 'setContentsFromObject') This is most likely not an ...
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 ...
0 votes
1 answer
402 views

How to retrieve Enhanced list metadata using sfdx?

We can handle the default related list to the enhanced list using the Lightning app builder page but I want to make it dynamically using metadata so no need to change manually every time in each ...
1 vote
1 answer
7k 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
0 answers
62 views

unpackagedMetadata setting in sfdx-project.json not being respected

I am using : My sfdx-project.json: "packageDirectories": [ { "path": "source", "default": true, "package": "complaints&...
0 votes
1 answer
220 views

Add specified tests in sfdx deploy command

I want to use specified test classes available in my repository with sfdx force deploy command. I can include it using -l RunSpecifiedTests -r TestClass1,TestClass2. However, I had to manually write ...
0 votes
1 answer
721 views

sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite

I am used to using this command: sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite Now I am getting this error Warning: We plan to deprecate this command in the future. Try ...
0 votes
0 answers
30 views

Obtaining Flow ID from a Bash script

I need assistance with my Bash script for creating a link to a flow in Flow Builder that I want to open. I am encountering an issue where I am getting a null value from the $response variable. I would ...
5 votes
1 answer
3k views

SFDX create package version throws plugin packaging error

I am trying to create a package version using sfdx command - sfdx package create -n secondPackageRety -d "Second package retry" -r secondPackage -t Unlocked Now, it throws an error ...
0 votes
0 answers
240 views

sfdx update stopped

I am try to fix the 'Component conversion failed. Directory does not contain a valid dx project' error. I was told to try to update the sfdx cli. I ran the sfdx update command in vs code and now it ...
1 vote
1 answer
123 views

Why would SFDX interpret Customfields as EmailServicesFunctions (project deploy preview on a scratch org)?

I created a scratch org, and I plan to deploy a basic schema to it. Being rather new to sfdx, I first run a sfdx project deploy preview, and the cli outputs me the weirdest thing: it seems to ...
3 votes
1 answer
77 views

I'm only allowed to use certain fields in SOQL run through sfdx

I'm working on a MacBook Pro, so I log into production via a browser, then I open a Terminal window and I authenticate: sfdx auth:device:login -r https://blue.my.salesforce.com I type in the code and ...
0 votes
0 answers
79 views

Validating for N number of components for a delta deployment jenkins pipeline

I was trying to achieve delta deployment using sfdx-git-delta plug-in. I can install the plugin in run time and plug-in was able to compare the two commit i'ds which i have mentioned in the command ...
0 votes
1 answer
355 views

Salesforce CLI - How to disable warnings?

Since the last Salesforce CLI Update 7.193.2 I've been seeing this warnings in the "Problems" tab in Visual Studio Code. Does anyone know how to disable them? It makes my code unreadable, ...
5 votes
3 answers
2k 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 ...
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 ...
0 votes
0 answers
286 views

Every SOQL query I run through sfdx is getting an error, including 'field doesn't exist' on fields that clearly exist

I'm just getting setup on my Mac, to work with my organization. I wanted to be able to open the Terminal and use sfdx to run SOQL queries but I think perhaps I missed some crucial step? I was ...
0 votes
0 answers
140 views

SFDMU use for cpq objects

I'm trying to use sfdmu to migrate some cpq data, and i have two major problems: the order of files beeing processed (for example for pricebookentry, the ones related to the standard pricebook should ...
4 votes
2 answers
1k views

SFDX: How can I make my plugin available to install via sfdx plugins:install and a git repo reference?

We have written a plugin for use by our PS and QA teams for complex and large "data plan" loading and want to make it as easy to install for them as possible. We don't want to make it ...
3 votes
1 answer
3k views

package is not a sf command?

Salesforce has recently deprecated the sfdx force:package:version:create command. sfdx asks us to use the package version create command instead. Running sf package version create, however, also ...
0 votes
1 answer
661 views

Get the URL of an organization from its Org ID with sfdx?

I've seen similar questions asked but none of the answers provide an SFDX solution and I'm really hoping there is one. I have an organization ID, but I work with several orgs. I cannot for my life ...
0 votes
4 answers
2k views

SFDX plugin to retrieve metadata from org

I am looking for a SFDX plugin which can retrieve all the metadata available in an org. In most of the approaches, I see that you need to create package.xml first, and then issue a retrieve call. Is ...

1
2 3 4 5