Questions tagged [salesforcedx-cli]
Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.
772
questions
0
votes
0
answers
20
views
how to setup sf cli in docker that run as anonymous user
i am installing cf cli in docker. it works fine when I run the docker as root. but when I run it as anonymous user: docker run -it --user 1001 sf_docker:latest bash and then executing:
sf version
it ...
0
votes
1
answer
26
views
sfdx cli - Unable to create scratch org | Error authenticating with JWT- invalid assertion
we are having some issue starting today (22 Nov) Everything was working till date. Starting today morning we are unable to create new scratch org.
sfdx CLI command we run
sfdx force:org:create -f ...
0
votes
0
answers
46
views
Why I am getting padding of 2px in my Lightning-radio-group element's all the radio button except first radio in LWC in salesforce?
CSS:
.vertical-radio-group {
display: flex;
flex-direction: column;
align-items: flex-start;
margin-left: var(--slds-c-lightning-radio-group-spacing-inline-start, 0rem);
}
.slds-radio {
...
0
votes
1
answer
40
views
open scratch org with new user in terminal
I want to open my scratch org with the same alias that I have nexmar in terminal but instead of system administrator open with my new user nexmar administrator that I make.
sf org create user --set-...
1
vote
0
answers
24
views
Second Generation Beta Package Creation is failing in Github Action
I'm trying to create a 2nd Gen package using Github Action (workflow dispatch Action). After I deployed and run the workflow it gave me an error while uploading the new package:
The error is on the &...
0
votes
1
answer
152
views
Unable to run sf package commands after MacOS upgrade to Sonoma
No sure if it's local config or OS upgrade but my sf cli commands have been broken especially the packaging commands.
When I run below command I get an error related to JIT plugin (I am assuming JIT ...
6
votes
2
answers
798
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
1
answer
59
views
Issue in new CLI command, package version create
After updating to the new CLI version, unable to create new package version.
I am not getting any error, in a few seconds it's saying as created but actually it's not creating anything.
Let me know ...
0
votes
0
answers
73
views
Trying to retrieve all the Metadata components in VSCode
I have tried to retrieve all the Metadata components from a Production org in VS Code successfully in the past by using the below command.
sf project generate manifest --from-org --name=allMetadata -...
1
vote
1
answer
265
views
"sf project deploy start" hits "isomorphic-git error"
Every other day I try to deploy some metadata (sf 2.11.8, PowerShell) and fail like this:
> sf project deploy start --metadata ApexClass:Foo
Error (1): An internal error caused this command to fail....
-1
votes
2
answers
388
views
how to overcome salesforce CLI slowness?
Salesforce extensions are taking ages to load in VS-Code.
CLI team is releasing updates 5 times in a month, Not sure each release has went through performance testing before release ?
After update I ...
0
votes
0
answers
113
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
0
answers
23
views
Intent Set Deployment
Is there a way to deploy Intent Set from dev to production with all the existing utterance present in it.If it's possible can you share me an example of the package we need to create for that or if ...
0
votes
0
answers
44
views
Using SFDX_MDAPI_TEMP_DIR Environment Variable does not retain generated metadata
When setting SFDX_MDAPI_TEMP_DIR using SET SFDX_MDAPI_TEMP_DIR=path_to_some_folder, I get a message saying that SFDX_MDAPI_TEMP_DIR is deprecated, use SF_MDAPI_TEMP_DIR instead. I set the updated ...
0
votes
1
answer
130
views
Unable to install lwc local server VS code
from yesterday I'm trying to install LWC local development server using
'sfdx plugins:install @Salesforce/lwc-dev-server'
but i'm getting an error a weird error like this.
Polling for new version(s) ...
0
votes
0
answers
27
views
Data import error handling using CLI
I'm using CLI command sf data import tree to import data based on a JSON plan into Salesforce org. If the data import gets an error for any record, then the whole load fails. Is it possible to somehow ...
0
votes
1
answer
49
views
Not able to setup Default org in VS code
Previously I have setup sandbox as a Default Org in my VS code. But somehow it's not showing now and when I am trying to setup again, I am not able to do so as commands are not showing in Command ...
0
votes
0
answers
1k
views
Unable to do sfdx deploy or sfdx retrieve from Vs code
I reinstalled git as I thought my git became corrupt, git doesnt have issue as git log and git status commands work. My VS code is connected to a sandbox, whenever I am doing a sfdx deploy source to ...
0
votes
0
answers
194
views
Deployment Error Says Report Folder is Missing
I'm deploying an sfdx project from VSCode. I'm getting errors on all of my report files that say "Cannot find folder:StoryNavigator." The folder and reports are in my package, so I'm not ...
0
votes
1
answer
52
views
Set Default Page Layout for Record Type in XML File
Can I add a default page layout to a record type xml file?
I'm deploying an sfdx package to various client organizations and I want to set a default page layout in each record type XML file. I can't ...
0
votes
0
answers
43
views
Can I Adjust the Log Output Frequency in Salesforce CLI (sfdx/sf)?
I'm currently working with Salesforce CLI (sfdx) with my ci runner, and I've noticed that the log output frequency seems to be set at 1 second intervals. This is generating a lot of output, and I'm ...
1
vote
1
answer
58
views
Is sfdx force:apex:log:tail working with findstr on Windows 10?
As I'm on Windows 10 and currently not intending to install the Linux Subsystem (WSL) on my machine I'm wondering why I couldn't get this command running sfdx force:apex:log:tail --color | findstr ...
0
votes
0
answers
56
views
How to setup a DX Project Workflow to customize Production
I am trying to understand the workflow of creating a DX project from an existing Production Org so that I can port over all metadata to a DevHub and ScratchOrg in order to make customization.
I am ...
0
votes
2
answers
303
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 ...
1
vote
2
answers
302
views
Mass insert custom metadata records command 'sf cmdt generate records' throws error The column Name is not found on the custom metadata type
I am following the documentation here :
cmdt command Salesforce CLI
precisely this command :
sf cmdt generate records --csv path/to/my.csv --type-name MyCmdt
I am using a csv file with the first ...
0
votes
0
answers
69
views
Problem connecting to the salesforce authentication service when trying to authorize an org
Problem connecting to the salesforce authentication service when trying to authorize an org.
Getting below error:
Could not retrieve the username after successful auth code exchange. Due to: request ...
1
vote
0
answers
2k
views
Getting the error : The "path" argument must be of type string. Received undefined
When I am trying to push an lwc component to the org using SFDX: Deploy This Source To Org I am getting the following error :
The "path" argument must be of type string. Received undefined
...
1
vote
0
answers
196
views
Getting "exports.getOrgApiVersion" When Trying to Deploy LWC to Org [duplicate]
I am trying to deploy a new LWC to my personal development org for a trailhead module, but I am receiving this error in the logs when trying to deploy the component "exports.getOrgApiVersion"...
0
votes
0
answers
90
views
How to delete custom field translations when deleting the field?
I've deleted a custom field, and pushed that to my scratch org, but now I can't delete the corresponding translation:
$ rm package/main/default/objects/Opportunity/fields/MyField__c.field-meta.xml
$ ...
0
votes
0
answers
109
views
How to enable "Share and organize quick text in folders" via SFDX?
How do I automate enabling "Share and organize quick text in folders" via the SFDX CLI?
I've looked and I can't seem to see a feature to enable, and I can't find out how to set this. ...
0
votes
0
answers
63
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
277
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 ...
0
votes
0
answers
198
views
CLI installation sfdx is not recognized
I am trying to get VS Code and SF CLI to work but after the installation of both I am getting the "sfdx is not recognized as the name of a cmdlet..." when I attempt to test my CLI ...
15
votes
2
answers
2k
views
VSCode doesn't clear errors even after successfully deploying to org
Since last week Friday my VSC is no longer clearing errors, even after I fix them. The only way to clear them is to close VSC and reopen it, which is a rather painful thing to do every time just to ...
0
votes
1
answer
125
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
57
views
Can't Access anything in VSCode for my org after Authenticating
I'm setting up VScode for salesforce to change my .js-meta.xml file. After starting a project with manifest and authorizing my org I still can't see anything. I'm trying to access a already-made LWC ...
0
votes
1
answer
131
views
Unable to create scratch orgs or access packages in SF/SFDX
My team and I have been trying to build a SFDC integration where we simply upsert data to Salesforce, with the objects schema defined in a managed package. However, we've been running into many ...
3
votes
1
answer
229
views
Error while creating a 2G Package version: Insufficient permissions: secure query included inaccessible field
Hope you're having a good day.
I need some help resolving a problem I am facing while developing a 2nd Generation Managed Package. Following the ISV and SFDX Guide, when I create a 2G Package version ...
4
votes
0
answers
2k
views
Salesforce CLI Deprecated environment variable SFDX_JSON_TO_STDOUT
G'day,
I'm following the trailhead guide for visual code
SF CLI Version: @salesforce/cli/1.79.0 win32-x64 node-v18.15.0
Windows Version: 10 20H2 OS 19042.2965.
Visual Code Version: 2023-05-10 1.78.2
...
1
vote
5
answers
763
views
Custom Metadata Type Records Mass Insert
Trying to mass upload custom metadata type records using cmdt commands. The following was working but now it stopped. I keep getting this error: 'The column Name is not found on the custom metadata'. ...
0
votes
1
answer
247
views
Change the class of selected <li> in LWC
I need to change the class of selected li element in my lwc component
HTML:
<template for:each={itemsListNew} for:item="myitem">
<li data-value={...
-1
votes
1
answer
5k
views
SFDX: Authorize an Org failed to run
11:55:18.338 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername
(node:8748) Warning: Deprecated environment variable: SFDX_JSON_TO_STDOUT. ...
1
vote
0
answers
83
views
Due to SFDX update unable to convert and deploy scratch org code
After updating sfdx cli to 1.77.1 unable to convert and deploy the scratch code org in packaging org.
Old Convert Command:
sfdx force:source:convert --outputdir '/Users/mack/Documents/outputdir' --...
1
vote
0
answers
73
views
Apex Test in VS Code: "Faye client generated a transport:down event"
Weird message when I tried to use Salesforce Extensions to run an Apex test in VS Code this morning:
Running SFDX: Run Apex Tests: Faye client generated a transport:down event.
Who is Faye, and where ...
0
votes
1
answer
181
views
Does anyone know how to include the namespace prefix in your VSCode folder structure when running "sfdx force:source:retrieve"?
When running "sfdx force:source:retrieve -x package_objects.xml" our folder structure does not include the prefix for our managed package.
For example we have a custom object "NewObject&...
0
votes
0
answers
201
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
97
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
48
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 ...
1
vote
1
answer
155
views
SFDX CLI Create package version fails in CI/CD
When I executed the same code
branchSwitch="-b test"
echo $(sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch) &...
-1
votes
1
answer
193
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.
...