Questions tagged [salesforcedx-cli]

Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Is there a VS Code setting to prevent the SFDX Problem Matcher from returning absolute path?

When I have a compile problem, the problem matcher does not open the source code file in my project. Instead, it tries to find the file in an absolute path at the root of my C drive (windows 11) and ...
user avatar
0 votes
1 answer
22 views

Installation steps for Salesforce ANT migration tool (apache ANT) on Linux machine

i need to install Apache ANT and Salesforce ANT migration tool on the Linux machine. I have downloaded both zip files and installed the java JDK 11 version. How can i set up the environment variables ...
user avatar
2 votes
1 answer
21 views

Is it possible to retrieve actual data of the ContentVersion record by using the Salesforce CLI?

I would like to retrieve the Base64 data of the ContentVersion file stored in my Org. The requirement is to do so by using the Salesforce CLI, though. I identified two potential commands that could ...
user avatar
1 vote
0 answers
35 views

Invalid Session ID found in SessionHeader: Illegal Session in VS Code

I am facing this error in Visual Studio Code after authorizing an org with session id: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing ...
user avatar
0 votes
1 answer
42 views

Unable to package a digital experience site : In field: PicassoSite - no SiteDotCom named XX found, In field: Network - no Network named XX found

I am trying to create an unlocked package containing a digital experience site but without success, the latest issue that I spent hours trying to solve is that I get the following output : In field: ...
user avatar
  • 55
0 votes
1 answer
43 views

Is anybody using Metarocket.io as a SFDC GUI?

Was trying to find a way to Find & Replace Visualforce page names in an org and this community answer lead me to MavensMate which is not supported anymore. Then this question looking for an ...
user avatar
0 votes
1 answer
50 views

How should I solve this error I'm facing trying to push source to default scratch org?

So, I been trying to push the source code to the default scratch org which i have created using VS Code but I keep getting this error. Starting SFDX: Push Source to Default Scratch Org 00:14:34.116 ...
user avatar
  • 1
0 votes
2 answers
37 views

How can I update my Github Actions CI script to install sfdx?

I used to have a script wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz mkdir sfdx-cli tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-...
user avatar
  • 13.2k
0 votes
0 answers
27 views

Salesforce LWC import

Hi I'm pretty new to Salesforce-dx LWC development. I have a query surrounding unmanaged package development. Currently I have a product structure. I wanted to understand if its possible to use a LWC ...
user avatar
0 votes
0 answers
110 views

Getting errors from yesterday while including test run from SFDX command

We have been receiving errors from our CI/CD process and from local python command whenever we deploy and tests are included in the package. From Python command when I fire this: sfdx force:apex:test:...
user avatar
0 votes
0 answers
201 views

sfdx force:source:deploy is failing with ECONNRESET error

One of my sandboxes I use for my CI pipeline has begun to fail on deployments. However, the Deployment Status tab in Salesforce shows the deployment as succeeding, most of the time. Running the ...
user avatar
1 vote
1 answer
38 views

How to create Field Service Lighting permission sets via SFDX

I'm strugging with the Field Service Lightning and how it blends with the SFDX story Our business analyst is already cooking up a storm in a sandbox where she has FSL all working and configured.. so I'...
user avatar
  • 293
0 votes
1 answer
45 views

salesforce function : Pushing changes to functions... failed

When I deploy function to connected org using command sf deploy functions --connected-rg=rule_engine I am getting the following error: Pushing changes to functions... failed TypeError: Cannot read ...
user avatar
1 vote
1 answer
77 views

VS Code no longer recognizing CLI Extensions

In the past week, VS Code no longer recognizes the CLI/SFDX. I have verified that I can create projects with sfdx force:project:create and the correct folder structure is created. However, when ...
user avatar
  • 77
0 votes
0 answers
34 views

PcakgeInstallationCommand is failed with "No TOKEN named force:base.cardSpacingMargin found"

PackageinstallCommand is failed with below issue, CLI Version: SFDX-CLI 7.96.1 ERROR: Encountered errors installing the package!,Installation errors: 1) (intelligentDiscoveryStatus) No TOKEN named ...
user avatar
2 votes
1 answer
60 views

What does the SFDX_IMPROVED_CODE_COVERAGE environment variable do for Apex Testing?

I've seen the SFDX_IMPROVED_CODE_COVERAGE environment variable be used, but I don't understand what it does. Googling SFDX_IMPROVED_CODE_COVERAGE gives practically no results. What does ...
user avatar
  • 123
0 votes
0 answers
79 views

sfdx-mohanc-plugins error

I'm getting Error: yarn add sfdx-mohanc-plugins@latest --non-interactive --mutex=file:C:\Users\User-S\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\User-S\AppData\Local\sfdx\yarn --...
user avatar
0 votes
0 answers
54 views

Variable does not exist: MailingCountryCode

When I try to deploy to a scratch org a class that references the field MailingCountryCode on the object Contact, I receive the following error message : Variable does not exist: MailingCountryCode (...
user avatar
  • 55
0 votes
0 answers
42 views

Error [sObject.RecordType] Duplicate name 'sObjectRecordType' specified

I'm trying to create a Pull Request with code that i pulled from my scratch org, everything seems to work fine, but at the end this error appears: Why is this happening?
user avatar
4 votes
1 answer
71 views

SFDX: Is there a documentation on list of file extns/mime types that sfdx cli renames the files for?

When we retrieve a static resource and convert into dx format, cli will rename the .resource to .png if mime type in the .resource-meta.xml is image/png. Is there a list of such mime types that cli ...
user avatar
  • 1,424
0 votes
0 answers
25 views

SFDX pull clears out object's metadata file?

I am having a strange problem with SFDX. I've been able to create scratch orgs and push my metadata to them, but when I create a new field on an object and do sfdx force:source:pull to retrieve the ...
user avatar
2 votes
1 answer
41 views

How can I create salesforce user (not `Account` record) through salesforce CLI?

I want to create a User through Salesforce CLI. I know that I can create Scratch-Org users (DOC), but I want to create one in production organization; I know that I can create user through API (DOC, ...
user avatar
0 votes
0 answers
29 views

conn.query() method is not returning all the records

I am trying to create a custom sfdx plugin, for that I am fetching a query result using const result = await connection.query(SOQLQuery); but it is not giving me all the records which are present in ...
user avatar
2 votes
1 answer
96 views

SFDX deploy works, but not push?

I'm trying to get everything set up with SFDX to deploy to scratch orgs. I've gotten all my metadata from a sandbox and prepared it so that it deploys to a new scratch orgs without problems using the ...
user avatar
1 vote
0 answers
80 views

Salesforce Frontdoor.jsp returns status 200 instead of 302 when behind firewall/VPN

The Salesforce CLI opens DX Scratch Orgs, Sandboxes, and Production environments by executing the force:org:open command. If you add the --urlonly flag to that command, it reveals the URL that is ...
user avatar
0 votes
1 answer
66 views

Can't deploy global value set using SFDX?

I've been trying to deploy one single global value set to a test scratch org as I get comfortable with SFDX but I cannot seem to get it to work. This is the command I'm using: sfdx force:source:deploy ...
user avatar
0 votes
0 answers
40 views

NOT_FOUND: The requested resource does not exist

When I Tried to Delete the Opportunity using function.It is Not getting deleted Error:NOT_FOUND: The requested resource does not exist Apex Class: public with sharing class FunctionTest { Public ...
user avatar
1 vote
0 answers
210 views

Can't open Scratch org via sfdx:org:open or URL

For the last week I was unable to work with scratch orgs on multiple computers, multiple networks and DevHubs. Simply because I am not able to open the always successfully created scratch orgs. No ...
user avatar
-1 votes
1 answer
31 views

Allow-list IP on salesforce environment automation / Programatically

I have scenario, Need to allow-list IP address in Salesforce from a CI pipeline (Azure DevOps pipeline), IP address is azure DevOps Microsoft hosted agent. Is there a way to achieve this using SFDX ...
user avatar
  • 1
0 votes
1 answer
59 views

sfdx force:apex:log:tail command is not working anymore

Can anyone pls advise if the tailing the log option has been removed in any recent upgrade of SFDX cli. This is used to work earlier, recently I am seeing not working anymore. Thought ? sfdx --...
user avatar
  • 1
0 votes
0 answers
20 views

Error: value too long for field: source maximum length is:131072 [duplicate]

Error: value too long for field: source maximum length is:131072 Getting above error while deploying Lwc through VScode. Little help would be great. Thanks
user avatar
1 vote
1 answer
48 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
  • 103
1 vote
0 answers
34 views

Apex Log manager needed, or way how to filter big amount of logs

I'm looking for some tool, or extension for managing/ searching Apex logs. My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone. Basically, when I reload one ...
user avatar
0 votes
1 answer
70 views

Salesforce Git Pipeline not recognizing sfdx

I am setting up my CI/CD pipelines and when i am running the pipeline , it fails with the below error. /bin/bash: line 129: sfdx: command not found Below is my sample .yml file #######################...
user avatar
  • 30
1 vote
0 answers
35 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
1 vote
1 answer
160 views

SFDX: Execute SOQL Query failed to run

Unable to run SOQL queries on VSCode. I'm getting the following error. Starting SFDX: Execute SOQL Query... 19:33:27.886 sfdx force:data:soql:query --query SELECT Id, Name FROM Account 19:33:27.888 ...
user avatar
0 votes
1 answer
157 views

Unable to Authorize an Org in VSCode

I'm unable to Authorize an Org from VSCode. I'm getting the following error. Starting SFDX: Authorize an Org 16:39:55.121 sfdx force:auth:web:login --setalias <org-name> --instanceurl https://...
user avatar
0 votes
0 answers
51 views

SFDX: Issue with 'sfdx force:source:retrieve -n <package name>' command while trying to retrieve unlocked package

I am trying to retrieve an unlocked package from the sandbox. When I try to use 'sfdx force:source:retrieve -n <package name>' command it is throwing below issue ERROR running force:source:...
user avatar
2 votes
0 answers
114 views

Unexpected file found in package directory lwc\jsconfig.json

On 12/13/2021, I attempted to run sfdx force:source:push -f to a scratch org. Since then I have been getting this 'Unexpected file found in package directory lwc\jsconfig.json' error every single time ...
user avatar
  • 21
3 votes
1 answer
324 views

Cannot read properties of null (reading 'Username') while running sfdx force:package:version:list?

I am getting following error Error: Cannot read properties of null (reading 'Username') while running sfdx force:package:version:list command? I am using sfdx-cli/7.132.0 win32-x64 node-v16.13.1 ...
user avatar
1 vote
1 answer
35 views

how to programmatically turn on Einstein email tracking settings in scratch org

EDIT: my question is prob a diff way to ask this I get this error in my CLI when pushing source: In field: field - no CustomField named ListEmail.DeliveryRate and I've discovered that the error is ...
user avatar
  • 293
0 votes
1 answer
97 views

Error Running sfdx force:org:package commands

I am having issues running any of the package related commands through the command line. This came up kind of randomly after it was working a few weeks ago. I have deleted my .sfdx folder in my users ...
user avatar
0 votes
1 answer
773 views

How to deploy specific LWC component in VS code?

I am using the command to push the code into the scratch org sfdxforce:source:push It deploys all components not specific. I am following the below link ibit.ly/4MxW
user avatar
-2 votes
1 answer
42 views

Possible to download Attachment body with CLI? [closed]

I cannot find a CLI call to download the body (in binary) of an attachment.
user avatar
  • 97
4 votes
1 answer
166 views

Can I check Salesforce CLI Release notes right within the terminal?

I want to find and read about all the new features and enhancements in the Salesforce CLI every time I decide to upgrade to the latest. Is there a command that I can execute to read the Salesforce CLI ...
user avatar
0 votes
0 answers
123 views

ERROR running force:org:create: Unrecognized option: cookiesAllowAllPaths

When trying to create a scratch org via SFDX in vsCode, I am getting the following error: ERROR running force:org:create: Unrecognized option: cookiesAllowAllPaths I wish I could give more context as ...
user avatar
  • 21
0 votes
1 answer
103 views

CLI Unification: Is there an 'sf' equivalent of 'sfdx' --dev-debug?

I run into an issue authenticating a Salesforce org with the new sf executable. Using sf login org -a myAlias giving me an this error: JsonParseError: Unexpected end of JSON input For sfdx it was ...
user avatar
0 votes
1 answer
65 views

How to create email template folder using SFDX command/CLI?

We are building test suite in our CI/CD pipeline, It will automatically create a scratch org and then it will start the test script but metadata deployment is failing due to email template folder not ...
user avatar
  • 309
0 votes
0 answers
75 views

Issue With Salesforce CLI update

Hi I have just updated the version of the Salesforce CLI--from 7.110.0 ----- to 7.129.0-c662c12 After Update i am getting below error :--- 19:19:27.198 sfdx force:auth:web:login --setalias test --...
user avatar
  • 1
1 vote
1 answer
183 views

How to install a specific version of the Salesforce CLI on Linux?

I know that there is some code on how to install latect linux sfdx tar.xz archive inside container. you have to download the archive, unpack it and then run ./sfdx/install which works fine. However, ...
user avatar

1
2 3 4 5
14