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
2 answers
27 views

Create a Lightning web component for creating records for master detail type

I have two custom objects Building and flat, in this building is the master of the flat object and I have to Create an LWC component for creating new flats. in flats object since building is the ...
0 votes
0 answers
38 views

Unable to retreive org to VSCode

I am having problem with retrieving org to my VS Code. I usually work with IntelliJ, but I need to do some quick testing on my other laptop, so I tried using VS Code. Here are steps that I did so far: ...
0 votes
1 answer
49 views

Test class does not run when I use --runtests

Test class does not run when I use --runtests What's up community, I'm trying to deploy a deploy with its respective test class. But the problem is that it does not run the test class and I specify it ...
0 votes
2 answers
48 views

Strange error force:org:shape:list: Cannot read properties of undefined (reading 'length')

Strange error force:org:shape:list: Cannot read properties of undefined (reading 'length') When I executed a command force:org:shape:list, I am obtaining a very strange misterious error: Cannot read ...
  • 13.9k
1 vote
1 answer
41 views

VS Code: "Set a default org" succeeds but shows error

I recently started getting an error when I switch from one authenticated Salesforce environment to another in VS Code: The Salesforce CLI output shows a conflicting message: Starting SFDX: Set a ...
1 vote
0 answers
63 views

Facing "Error: unable to get local issuer certificate Code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY" when trying to update CLI. How to overcome this one

To set up SFDX , first I did install CLI and when I tried updating the same, I'm facing this issue. Can anyone please help me out.
  • 11
1 vote
0 answers
20 views

Unable to create a package version for second generation managed package

I'm trying to create a 2G managed package. The following were the steps I used sfdx force:package:create --name newManagedPackage --packagetype Managed --path force-app I was able to create a ...
  • 662
2 votes
0 answers
12 views

SfdxError: No supported Android API package found

Im trying to setup a local android environment. Followed instructions here https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_extensions_setup_android_studio, and ...
2 votes
0 answers
36 views

How to remove Salesforce standard Navigation Panel in LWC

From the record page I am opening LWC using button. On that page I dont want Salesforce standard Navigation Panel including. I want to remove whole part marked in red in the image. Please let me know ...
  • 19
-1 votes
1 answer
18 views

How do you register to try the Pilot: Scratch Org Snapshots?

I want to try this feature how do i register to try this Pilot: Scratch Org Snapshots
1 vote
1 answer
38 views

Where can i learn to create saleforces cli plugin?

I am new to salesforce and i am looking for any tutorial paid or not to learn to create salesforce cli plugin
2 votes
3 answers
235 views

Property 'allowNullValues' not valid in version 54.0

When using force:source:deploy with a package.xml we have the following error Error Contract__c.ContractNumber__c Property 'allowNullValues' not valid in version 55.0 Everything was fine until ...
1 vote
1 answer
42 views

Issue with pushing source code to Scratch Org

I've recently ran into some issues with pushing my source code into newly created scratch orgs. I've created 3 of them prior to this, so I'm pretty sure the process is correct. I've tried using the ...
1 vote
0 answers
44 views

Salesforce CLI: Error authenticating with the refresh token due to: Socket is closed

I've recently installed salesforce CLI and VS Code on a Mac and for some reason deploying to my sandbox stop working after a few minutes of inactivity. The, I have to quit and execute VS code several ...
1 vote
0 answers
34 views

sfdx force:source:deploy blocked on push

when pushing source via sfdx force:source:deploy - I get super random upload times. When running in debug mode, the command either runs smoothly or blocks at : sfdx:@salesforce/plugin-config:hooks:...
0 votes
1 answer
49 views

Facing problem sfdx force:mdapi:deploy and force:source:deploy

I want to deploy the destructive changes. I have tried the below options but it doesn't work for me: Option 1: sfdx force:mdapi:deploy -f destructiveChanges.zip -u orgname Option 2: sfdx force:source:...
  • 121
1 vote
1 answer
47 views

ERROR running auth:web:login: EACCES: permission denied, open <filename>

When trying to Auth a Dev Hub or other org to VS Code for salesforce/sfdx, I am getting the error: ERROR running auth:web:login: EACCES: permission denied, open '/Users/eye.../.sfdx/test-e2idy...ycs@...
  • 116
1 vote
1 answer
85 views

How to simulate sfdx:force:org:open?

I want to write few automation that will run on cli and use sfdx force:org:open. How do I simulate the command? The automation needs the url that sfdx... command leads to in the browser.Example I want ...
1 vote
2 answers
97 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-...
0 votes
0 answers
20 views

My VS Code Command Palette don't show any salesforce command

I have checked environment variables, Path, extension pack and everything twice. My Salesforce CLI is working in Command Prompt as well as VS Code Terminal but installation of salesforce extension ...
0 votes
1 answer
64 views

How to solve "A SiteDotCom site using template [Build Your Own (LWR)] does not support MD API Retrieval"?

I need to retrieve the SiteDotCom metadata of a Build Your Own (LWR) community template. When I run: sfdx force:source:retrieve -m SiteDotCom It successfully pulls all the SiteDotCom of Aura ...
-1 votes
1 answer
24 views

Link a Student Name to the Student Custom Object in LWC SalesForce [closed]

When I created the LWC components it contains the Student Name with his grade I want to allow the user when he clicks on the Student Name to be redirected to the student record in Student Custom ...
1 vote
2 answers
82 views

How to compare the diff between 2 orgs with sfdx?

really need your help. I have 2 sandboxes which have their own development, now that i want to merge them into one, i want to make a comparison of diff between those 2 orgs. I have tried running this ...
0 votes
1 answer
60 views

How to detect Outside the div in LWC?

How to detect outside the div and inside the div in LWC. I have a child component, which I have used multiple times as a custom picklist and Simple Text. So When I click Simple text the picklist is ...
0 votes
3 answers
62 views

Is there a way to create a sandbox from the scratch org?

I need to create new scratch orgs every 30 days (because they expire every 30 days) but on my project there is a big number of post-steps to configure the scratch org which take enormous amount of ...
  • 35
0 votes
1 answer
42 views

2GP Managed Package : ERROR running force:package:version:create: while Verifying Metadata Invalid type: namespace__CustomObject__c

I am trying to create a managed package version for 2GP using salesforce CLI, after running force:package:version:create command I am getting thousands of errors in the terminal I am only able to see ...
  • 3
-2 votes
1 answer
29 views

What is the best way to gather salesforce data on org limit / static resource usage using REST or SFDX CLI [closed]

I want to keep track of our SF org portfolio/governor limit usage over time and am looking for a way to gather that data in real time. Is there a way to gather info on limit usage such as: Lookups on ...
1 vote
2 answers
184 views

'C:\Program' is not recognized as an internal or external command in 'Git Bash Here' terminal - Windows (salesforce sfdx)

I'm here to ask you a very strange problem. Right now i'm starting to work on Salesforce technology, in windows, and currently i follow the tutorial. When finally arrive to the terminal part, Windows ...
2 votes
2 answers
163 views

Incremental deployment using SFDX CLI, Jenkins and GitHub

I have implemented deployment pipeline in Jenkins using SFDX CLI and GitHub. I am able to deploy metadata to Salesforce Org using below commands. First, validate the deployment sfdx force:mdapi:...
1 vote
0 answers
40 views

In Mac, force:org:open: policy denied

I jus upgraded my Mac and now I cant connect to the org via vscode due to the error. I set node_tls_reject_unauthorized =0 sfdx_disable_dns_check=true but no luck. Error running force:org:open: policy ...
1 vote
1 answer
107 views

Is it possible to retrieve Job ID generated by sfdx:force:mdapi:deploy -c flag so as to use that Job ID in next step using -q flag to actual deploy

I have jenkins pipeline with SFDX CLI integration. I have few stages in pipeline like login, validate. In validate I have SFDX command rc = command "${toolbelt}/sfdx force:mdapi:deploy -f ...
2 votes
1 answer
143 views

sfdx update failing at "Updating plugins" with ESOCKETTIMEDOUT

So, it's been a while since I ran sfdx update and the update was larger than average (138 MB). After updating the CLI failed for 2 days straight, it finally worked for me this morning. The next step ...
  • 50.6k
1 vote
1 answer
216 views

Problem's are returning errors linking to incorrect file locations giving "The editor could not be opened because the file was not found"

I recently did a new install of VSCode and SFDX CLI on a new Macbook. So versions are recent. I have updated SFDX since this error but it still exists. sfdx-cli/7.152.0 darwin-x64 node-v16.15.0 What ...
0 votes
0 answers
76 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 ...
0 votes
1 answer
50 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 ...
2 votes
1 answer
93 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 ...
1 vote
1 answer
278 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 ...
0 votes
1 answer
526 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: ...
  • 87
0 votes
1 answer
69 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 ...
0 votes
2 answers
137 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 ...
  • 1
0 votes
2 answers
102 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-...
  • 13.9k
0 votes
0 answers
88 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 ...
0 votes
0 answers
278 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:...
0 votes
0 answers
637 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 ...
1 vote
1 answer
62 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'...
  • 343
1 vote
1 answer
100 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 ...
1 vote
1 answer
150 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 ...
  • 77
0 votes
0 answers
41 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 ...
2 votes
1 answer
89 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 ...
  • 123
0 votes
0 answers
171 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 --...

1
2 3 4 5
14