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
1
vote
1answer
85 views

What's the difference between DX Project and Custom Application

I am new to salesforce development and kind of getting my head around how to think in salesforce. So I created DX Project and I was assuming it will become an App but it turn out I have to make it ...
0
votes
0answers
29 views

ECONNRESET SFDX Deploy

During a deploy a have this problem on vscode. Cli throw me the message when I try to deploy a lwc. Someone has an idea for this problem ?
0
votes
0answers
26 views

sfdx force:package:version:create gave me erros

Now, I'm creating package version with community, custom object, custom tab, custom application but can't create version with the following errors. How can I solve it? test-unlocked-package git:(...
0
votes
1answer
28 views

Revert changes from git using VSCode

noob question from someone who just started using VSCode and SFDX for Salesforce development. When you make changes to a project, git tracks those changes, this is nothing new. But when you want to ...
0
votes
1answer
19 views

how can we leverage artifactory in salesforce platform

In typical java environment, after code quality test, we package code and push it to artifactory as snapshot, and then bring it to desired environment (dev/test/pre-prod) and deploy same. As I’m new ...
0
votes
1answer
38 views

Implement CI/CD using Bitbucket/Git and Codeship

I'm trying to implement CI/CD using Bitbucket and Codeship(a CD tool like Jenkins) to achieve continuous deployment in Salesforce Orgs along with code versioning. I'm confused with the new folder ...
1
vote
1answer
132 views

What Does (U) and Mean for an Org?

As seen in the image, there's an org with (D) and an org with (U). The (D) means default as per the Trailhead modules, but there's never any explanation as to what (U) means in any module or docs. ...
1
vote
0answers
29 views

Sandbox Refreshes with Different Connected Apps Configurations for Prod/Test [duplicate]

Currently looking for ideas on how to handle sandbox refreshes, where production and the sandboxes use different configurations in a Connected App. That is, each environment has a Connected App where ...
0
votes
0answers
11 views

DX CLI - Cant find Error after moving a folder

I recently took a folder on my desktop and made it the child of another folder, and now get the following error message when running commands in the CLI: (node:13468) Error Plugin: sfdx-cli: could not ...
2
votes
0answers
48 views

ERROR running force:data:tree:import: The requested resource does not exist when using force:data:tree:import

I'm having some trouble with importing Json file which containing data in SObject using sfdx force:data:tree:import -p ./data/Project__c-Round__c-plan.json It spits out an error which is: ERROR ...
0
votes
1answer
32 views

Salesforce CLI issue while creating Project [duplicate]

When I try to create project with manifest I am getting the following error: Starting SFDX: Create Project > > 10:25:36.141 sfdx force:project:create --projectname AmDev > --outputdir c:\...
2
votes
1answer
40 views

SFDX force:auth:web:login to Scratch Org other than one created by your CLI, Grant type not supported

Similar question asked about logging into Sandboxes with this error SFDX: Grant type not supported; here we look at logging into scratch orgs. Given: In your CLI you want to log into a scratch org ...
0
votes
0answers
46 views

Why code coverage result is different when we run it from CLI and Salesforce

We are working on SonarQube code coverage, We are using Salesforce CLI for generating the code coverage result and we are importing that result in the SonarQube. We see that there is a difference in ...
0
votes
0answers
10 views

How to get Field Service Dispatcher/Resource license in Enterprise edition Scratch org?

I can't get Field Service Dispatcher/Resource license when I select the "Enterprise" edition for my Scratch Org. I can manage to get the licenses when using the "Developer" edition though. Why?
2
votes
1answer
80 views

VS Code Setup - Create project with manifest error

When I try to create project with manifest it is giving me this error: Starting SFDX: Create Project 12:39:56.757 sfdx force:project:create --projectname Dev --outputdir c:\ --template standard --...
1
vote
1answer
40 views

SFDX 2GP: cannot create new managed package version

I need to add a new class to an existing 2GP managed package. I get the following error when I attempt to create the package using the SF CLI. How do I resolve this issue when I attempt to build it? ...
0
votes
1answer
27 views

forceignore files with prefix

I have a bunch of apex classes that start with a prefix such as: et4ae5__HelpLinks.cls et4ae5__Manual.cls cwbtool__CodeComparator.cls cwbtool__ConnectionCtrl.cls How can I ignore anything that ...
1
vote
2answers
44 views

SFDX force:source:push to Scratch Org with selected path

I have two source folders in my project - force-app and sudipta-app. I have mentioned the same into sfdx-project.json as well like - { "packageDirectories": [ { "path": "force-app", ...
1
vote
2answers
92 views

Retrieve ExperienceBundle not working for one Community but working for another

I should say at the start, I'm not very experienced with Communities. I'm struggling to find a problem with retrieving the source of a Lightning Community as ExperienceBundle. I've activated the ...
0
votes
1answer
20 views

No create/update access for object when importing records from CSV via Salesforce CLI

I've been testing to insert a custom metadata type record from a CSV file via Salesforce CLI. I've used below command but I've been getting the following error: Command sfdx force:data:bulk:upsert ...
0
votes
0answers
44 views

Unable to authorize Scratch org from cli

I am trying to authorize an scratch org via CLI (sfdx force:auth:web:login) with my user which is created by another user and I am not able to authorize it. Getting below error: ERROR running force:...
1
vote
1answer
37 views

Even after pushing the Source files to Scrach org Iam not able to see my Lightning component under custom tab

I have created Lightning Web component through SFDC CLI using VC code editor, No while successfully pushing my changes to Scratch org.I am not seeing my LWC under Custome tabs in Lightning App ...
0
votes
0answers
22 views

DX CLI - Localhost EACCESS

I am trying to get the DX CLI to successfully open on a sfdx force:auth:web:login command, but continue getting this error: { Error: listen EACCES: permission denied 127.0.0.1:1717 at Server....
0
votes
0answers
30 views

i am facing below error while creating the project in vs code [duplicate]

ERROR running force:project:create: Command failed with exit code 1: npm root -g --prefix c:\Users\ajay sankhla\Desktop.yo-repository --loglevel error 'npm' is not recognized as an internal or ...
0
votes
0answers
23 views

Problem While pushing into Scratch Org

When I trying to push into my Scratch Org from CLI, using the command sfdx force:source:push -u TestScratchOrg -f then I'm encountering the error Unhandled rejection TypeError: Cannot read property '...
1
vote
0answers
31 views

Problem When Creating Scratch Org

I'm trying to create a Scratch ORG, but everytime I get the same error: Failed to deploy settings to scratch org. When I run Terminal, I got the following message: shape/settings/Bot.settings ...
3
votes
1answer
274 views

Metadata Deploy and Push fails on Flexipage componentInstances in API 49 (Summer 20)

I'm having a problem deploying metadata after having updated my project to Summer 20 and pushing the project contents to a Summer 20 org. There are several failures seemingly related to a FlexiPage ...
2
votes
1answer
64 views

How to properly install the preview release salesforcedx core plugin

On every release I run into some sort of trouble with this testing phase and having the preview CLI core plugin installed. The instructions are short and clear HERE That said, those instructions don'...
0
votes
0answers
34 views

SFDX error Create project with manifest [duplicate]

I am getting error in vs code while creating a project with manifest. Error: ERROR running force:project:create: Command failed with exit code 1: npm root -g --prefix c:\Users\ananga\SFDX\used.yo-...
1
vote
1answer
19 views

Issue with Salesforce Package directories

While Creating a new package version, I have to keep all the components in the same folder otherwise it is giving me errors. Even though the component exists in other directory. So,There are 2 use ...
0
votes
2answers
29 views

Getting error in .js-meta.xml(How to resolve this). I am trying to push code to scratch org

I am getting error as Error parsing file: LWC Metadata Xml Parser: Unhandled XML element: targetLightningComponentBundle Please find code below <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
0answers
8 views

Errors for external object in unlocked packages

how to add external objects and external data sources in an unlocked package? Is there any particular feature/setting needs to be enable? I have added the datasources also. But getting errors like ...
0
votes
1answer
26 views

Can I Push my code from VS Code to Salesforce Production

is there a way to push code from VS code to salesforce Production?
0
votes
1answer
28 views

How can we deploy custom My Domain name via metadata API?

Is there a way to deploy custom My Domain in Metadata API deployment using SFDX CLI?
1
vote
1answer
17 views

Can we hide or explicitly command not to post summary after executing DX commands?

I'm preparing an automated bash script, and during the execution, I intend to first convert a Metadata API repository to DX formatted structure and then push it into a Scratch org. For example, ...
1
vote
0answers
24 views

SFDX error for external objects

I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below: 1. Invalid type: Schema....
0
votes
0answers
35 views

Scratch ORG is not opening in browser

my scratch org is not opening in browser, vs code just display the url of the org in Terminal I am using chrome and its my default browser as well.
0
votes
1answer
71 views

Is Deployment of Queues not supported from sfdx CLI

While deploying queues from vs code using sfdx cli, I'm getting below error: ERROR running force:source:deploy: The specified metadata type is unsupported: [queues] It seems it's not supported.
1
vote
1answer
31 views

SFDX error for LiveChatTranscript object

I have added LiveChatTranscript object in my unlocked package but while versioning getting error LiveChatTranscript: Invalid fullName, must end in a custom suffix ( for ex. __c ) Can anyone help me ...
2
votes
1answer
161 views

Issue with Prod deployment from VS Code sfdx CLI

I'm trying to deploy my objects from VS Code to Prod. All my object is in Source format. But when I try to deploy, I get below error : sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun ...
0
votes
1answer
25 views

How to upload to gitlab repo? [closed]

Ok, so i have been trying to get this working and its driving me nuts. All want to do is take my project in vscode and upload it to a branch in gitlab. Here is a list of things i have done : Set ...
2
votes
2answers
148 views

Setting Environment Variables in Salesforce DX?

I am looking to update SFDX_IMPROVED_CODE_COVERAGE Environment variable to true. Loosely documented here and here. I am using the syntax documented here that seems to show that I can update that ...
0
votes
1answer
98 views

Can we reset security token using SFDX CLI?

I'm trying to find a way to reset default scratch org user's Security Token via CLI. Is that even possible?
1
vote
1answer
24 views

SFDX CLI - How to Pull SObject Definitions from Salesforce Scratch Org

I am interested in knowing how someone can pull SObject definitions, custom and standard, from a scratch org using the CLI, or otherwise, into a local directory e.g. .sfdx. Something similar to what ...
2
votes
1answer
43 views

Metadata list for unlocked packages which one is deprecated and which one is deleted?

I have 2 dev orgs. In org1 I have created one class, aura components and its controller class & custom meatadata. Then created an unlocked package and version it. Post that I have installed the ...
1
vote
1answer
357 views

Status 500, Internal server error when calling Apex from LWC

I'm getting a status 500, internal error when calling an Apex function from my LWC. I'm able to provoke the error whenever the function, which I'm calling, is passes a parameter. The following code ...
1
vote
1answer
29 views

Anybody knows where we can enable/disable “Make Setup My Default Landing Page” of user record programatically?

I've been trying to understand where we can toggle "Make Setup My Default Landing Page" field of user? My intention is to build a scratch org and at the same time I want to disable this after scratch ...
1
vote
3answers
143 views

Does SFDX force:mdapi:deploy respect .forceignore file?

I'm trying to work in a github repository project that is not in Source format and is using Metadata API format structure. The repository has stored all component code into an src folder including ...
1
vote
1answer
78 views

Sfdx Auth Url is getting expired after certain time

For CI pipeline for authentication I am using "sfdx force:Org:Display --targetusername ProductionHub --verbose" command to get Sfdx Auth Url. Then by using "sfdx force:auth:Sfdxurl:Store -f ...
0
votes
1answer
34 views

Error in SFDX CLI

getting below error, force:project:create -n projectname The filename, directory name, or volume label syntax is incorrect. when running command - force:project:create -n projectname in CLI

1
2 3 4 5
9