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
2
votes
0answers
22 views

Specifying individual CustomField in package.xml (vscode) does not deploy to Org, but when retrieving by object it does?

When retrieving CustomFields in package.xml by specifying: <types> <members>ObjectName.FieldName__c</members> <name>CustomField</name> </types> They retrieve ...
4
votes
1answer
50 views

Salesforce CLI deploy files with spaces failing

I am trying to deploy files to a non-source tracked org with the cli deploy command as follows: sfdx force:source:deploy -u [ORG] -p "force-app/main/default/layouts/Snapshot__mdt-Snapshot Layout....
0
votes
1answer
35 views

Authorize a Dev Hub Org

I need a help for authorize a Dev Hub Org using the Web-Based Flow. The output of the SFDX Cli is below. sfdx force:org:display -u myhuborg Acess Token : 00D000027..... Alias : myhuborg Client Id : ...
1
vote
3answers
49 views

How to see anonymous code debug logs in visual studio code?

I installed the Salesforce CLI and the Salesforce Salesforce Extension Pack on Visual Studio Code because it's easier to write code than the Developer Console but I got a problem. I want to get the ...
0
votes
1answer
21 views

ERROR running force:source:retrieve: Flag --manifest expects a value

I want to retrieve Salesforce data from my trailhead playground. I connect visual studio code with the org by authenticating the source org. I write the following command in terminal: C:\Users\XXX\...
0
votes
0answers
16 views

Issue creating sfdx project with latest version of CLI and MacOs - has anyone else seen the problem?

I am trying to create a simple SFDX project and hitting the same issue. It worked fine with previous version. I am running MacOS v10.15.6 (Catalina) with SFDX CLI (sfdx-cli/7.66.2-4f159a1d07 darwin-...
0
votes
1answer
45 views

Error Configure VS codespace

I am currently facing an error while configuring salesforce with VS code online We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: refresh_token ...
1
vote
1answer
33 views

You can specify RecordType in the package/retrieve it with SFDX, but it won't include Fields unless you retrieve them too. Is there a way around that?

I believe the same applies to profiles/permission sets. I want to be surgical with my retrieval so I only deploy what I want. If I retrieve record types, however, I need to include the Custom Object ...
1
vote
1answer
37 views

SFDX CLI is not working for any commands

SFDX suddenly stopped working for any commands. I updated sfdx and its plugins, still its giving same error. I am using same from VS Code, I created scratch org and performed few activities, and after ...
0
votes
0answers
17 views

In Lightning Web Component i used this cmd sfdx force:source:push then one error is popup

please, anybody, let me how to remove this error form VS code, I have enabled both toggles .
1
vote
0answers
18 views

How ignore Entitlement Process in Salesforce DX CLI?

I tried many times to ignore the Entitlement process (with versioning enable) and was unable to do it. All Scratch organizations that I created, after the first push, the first pull return many errors ...
2
votes
1answer
24 views

Flows metadata that Bypass User Permissions (SFDX)

In Summer 20, we have a possibility of define a "Run mode" of a Visual Flow, to run avoiding user permission, as we can see on this link: Run Flows That Bypass User Permissions. But when you ...
0
votes
1answer
23 views

License for using Salesforce CLI?

As a customer of Salesforce, is there further license need of any kind to use the Salesforce'c CLI?
0
votes
0answers
16 views

Trouble Installing CustomSalesforce CLI plugin- sfdx plugins:install <MyCustomPlugin_Gitlab_url> stuck at [1/4] Resolving Packages. and ends abruptly

I am trying to install a custom salesforce CLI plugin from the gitlab url. It gets stuck at stuck at [1/4] Resolving Packages... and ends abruptly without any error message. I tried the same thing ...
1
vote
1answer
26 views

difficulty in seeding developer sandbox and perform partial deployment for changed metadata

I'm pretty new to the salesforce environment and in my team we are using "org development model". Its not possible for us now to move to package base development model due to massive org ...
0
votes
0answers
28 views

sfdx Commands Suddenly Stopped Working in Visual Studio Code

I've been able to implement a current Salesforce project using Visual Studio Code as practice for implementing Salesforce DX. But suddenly, all sfdx commands (sfdx:authorize an org, sfdx: create a ...
1
vote
1answer
163 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
32 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
39 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
35 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
28 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
44 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
133 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
30 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
17 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
74 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
65 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
52 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
49 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
13 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
2answers
121 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
48 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
70 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
162 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
2answers
37 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
47 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
24 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
29 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
33 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 ...
4
votes
1answer
2k 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
75 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
36 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
20 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
38 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
27 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
34 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
2 3 4 5
10