Skip to main content

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
42 views

Cloning profile using custom plugin

I'm creating a custom sf plugin and using that to clone a custom admin profile and copy over ALL its contents(mainly FLS, Object permissions, apex class access etc) to another target profile. The idea ...
Apex Srinivas's user avatar
0 votes
0 answers
25 views

Variable does'nt exist error while pushing the source code to the scratch org

I have tried to push the source code to my scratch org using this command sfdx force:source:push I'm getting component failures and deployment is getting failed below are the errors Variable doesn't ...
Kruteeka ms's user avatar
0 votes
1 answer
37 views

Error when installing salesforce code scanner

I am trying to install salesforce code scanner with sf plugins install @salesforce/sfdx-scanner but I am getting an error: NpmError: Failed to find @salesforce/sfdx-scanner@latest in the registry sf ...
jani_r's user avatar
  • 123
2 votes
1 answer
72 views

Getting Error: spawn git ENOENT on build via sfp

I am trying to setup sfp by following the instructions: flxbl Docs I am trying to run below command as mentioned here: sfp build -v MySandboxOrg Getting below error output: ---------------------------...
वरुण's user avatar
  • 1,174
1 vote
1 answer
37 views

Getting error sfdx-project.json doesn't exist or not readable at sfdx-project.json

I am trying to setup sfp by following the instructions: flxbl Docs I have set up the sfdx-project.json as mentioned in step C here. My sfdx-project.json looks like below: { "packageDirectories&...
वरुण's user avatar
  • 1,174
3 votes
1 answer
288 views

UNSUPPORTED_API_VERSION: Invalid Api version specified on URL on Manifest Retrieval

After refreshing a sandbox last night, I was unable to retrieve metadata from the org using SFDX in VSCode due to a mismatch in API Versions. The error received was: 15:51:26.514 Starting SFDX: ...
Evelyn Maguire's user avatar
0 votes
0 answers
35 views

The scratch org is not ready yet (Status = New)

After running the command: sfdx org create scratch -duration-days 30 --wait 30 --username [email protected] the connection times out after a while and the following error is printed: The scratch ...
dev4life's user avatar
  • 592
2 votes
1 answer
52 views

Import Sandbox with Test Data for non developers

The use case here is that we want to import sandbox with test data having parent child relationship in a single go. One way to do it would be to use sf commands - sf data import tree --plan Account-...
Aditya M's user avatar
  • 432
3 votes
1 answer
119 views

How to retrieve the Network Access IP ranges via SFDX?

I would like to retrieve IP ranges from Network Access via SFDX but I don't how I can retrieve this? I don't see this as an option anywhere from the Salesforce Object Reference doc.
Andy Hitchings's user avatar
0 votes
1 answer
234 views

Install Modeler Salesforce CLI Plugin (Vs Code)

we are working on Visual Studio Code Based Modeler for Consumer Goods Cloud and an update was made in the plugins for salesforce modeler, and it did not work correctly. I reinstalled the plugin as ...
Francisco Becerra's user avatar
1 vote
1 answer
135 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
  • 123
1 vote
0 answers
36 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
  • 71
0 votes
1 answer
136 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
340 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
  • 980
1 vote
0 answers
479 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
0 votes
1 answer
725 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
  • 13
6 votes
2 answers
1k 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, =============================================================================== ──────────────────────────────────...
Sagar Thoriya's user avatar
0 votes
0 answers
400 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
1 vote
0 answers
919 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
0 votes
0 answers
235 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
  • 187
0 votes
0 answers
2k 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
2 answers
790 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 ...
Stoicorum's user avatar
0 votes
1 answer
708 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 ...
Rohit Kumar's user avatar
0 votes
2 answers
616 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 ...
Kushagra Srivastava's user avatar
0 votes
1 answer
988 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 ...
sdfxconfuseduser's user avatar
4 votes
4 answers
5k 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 ...
VaroutSP's user avatar
  • 361
1 vote
1 answer
168 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 ...
Werlin's user avatar
  • 23
3 votes
1 answer
113 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 ...
charlottesville's user avatar
0 votes
1 answer
581 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, ...
Jovan's user avatar
  • 1
-1 votes
1 answer
368 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. ...
Akshay's user avatar
  • 1
2 votes
1 answer
358 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
0 votes
0 answers
398 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 ...
charlottesville's user avatar
6 votes
1 answer
4k 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 ...
SEuser's user avatar
  • 1,847
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 ...
dev4life's user avatar
  • 592
0 votes
1 answer
1k 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 ...
ewhiting's user avatar
  • 101
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 ...
nica's user avatar
  • 1,430
0 votes
0 answers
158 views

Running sfdx force:apex:execute result in error

I am trying to run the below script on my sandbox- sfdx force:apex:execute -u SandboxName -f fileName.apex.cls and I get this error - Error: Line: 1, Column: 5 Error: Unexpected token '<'. File ...
sumchans's user avatar
  • 821
0 votes
1 answer
711 views

How to retrieve active flow via sfdx without creating new flow file

I am trying to retrieve the active version (version 18) of a flow using the following sfdx command : sfdx force:source:retrieve -m Flow:CreateProPM-18 According to the documentation : For Metadata ...
vanessen's user avatar
  • 2,705
0 votes
1 answer
179 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 ...
Sarang123's user avatar
1 vote
1 answer
559 views

Avoid duplicates in SFDMU Insert

I'm currently using SFDMU to deploy data in an automated way in a pipeline. Until now, the pipeline always used the Upsert operation in our export.json file. I.e { "objects": [ { ...
Manuel Moya's user avatar
0 votes
0 answers
1k views

Error when validating the deployment 'We couldn't retrieve the design time component information for component'

I am trying to validate Salesforce metadata deployment and getting the following error. Github actions trigger the deployment validation when a PR is raised. We couldn't retrieve the design time ...
SanJay's user avatar
  • 11
1 vote
1 answer
81 views

Salesforce Org Shape Error authentication

I'm passsing for this error, when i run the command sfdx force:org:shape:list ERROR running force:org:shape:list: Error authenticating with the refresh token due to: expired access/refresh token I ...
Matheus Coelho Campos's user avatar
1 vote
1 answer
760 views

Authentication using sfdxAuthUrl

Trying to authenticate via file, I was running into this error: { "status": 1, "name": "Syntax", "message": "./authFile.json: Unexpected token � in ...
SkyAnthrax94's user avatar
0 votes
1 answer
242 views

Is field in Salesforce considered as metadata ? Can I deploy via Sfdx

Want to create a mass field on custom object. Is field in Salesforce considered metadata.xml Can I deploy them via sfdc
Dharti's user avatar
  • 1
3 votes
3 answers
6k 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 ...
Naveen's user avatar
  • 65
0 votes
1 answer
178 views

Error retrieve from manifest in Visual Studio

I am trying to Retrieve Source from Org and I get this error: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL In package.xml, it shows me: <version>54.0</version> With this ...
Willy Kelly's user avatar
1 vote
3 answers
1k views

sfdx auth:jwt:grant: Unexpected arguments: -f

I am trying to connect Jenkins to the SF sandbox. I am stuck on the auth step, where I receive this kind of error: ERROR running auth:jwt:grant: Unexpected argument: Pipeline@tmp/secretFiles/e56a52e6-...
Oleksandr Honcharuk's user avatar
0 votes
1 answer
736 views

One of my scratch org environments suddenly expired. Is there a way to renew expired scratch org or at least renew the expired data?

Just already passed 30 days from the creation my scratch org Is there a way to rescue that scratch org or at least (in the future) to extend the time for above 30 days or to create a copy of that ...
Fgh999's user avatar
  • 35
0 votes
1 answer
733 views

Retrieving all groups using SFDX

I'm just wondering if there are any considerations when retrieving groups / queues using SFDX. The problem which I'm currently facing is that I'm unable to retrieve all queues using SFDX. There are ...
Rechu's user avatar
  • 452
0 votes
1 answer
765 views

Not able to find .sfdx path to delete the user name in MAC

From my visual studio code I authorized my org some three months before. So the user name and token will be stored in alias.json file in the .sfdx folder. Not my org password got changed. So when I ...
SFDC buddy's user avatar

1
2 3 4 5