Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [salesforcedx-cli]

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

0
votes
1answer
19 views

Can we run any post install script after deploying source code to an Org using Salesforce CLI

I'm deploying the source code using sfdx force:mdapi:deploy command. Is there a way to specify to execute any post-install script after the deployment gets completed. One alternative I was thinking of ...
0
votes
1answer
21 views

unable to create project in vscode

Facing problem to complete this trailhead trail ( https://trailhead.salesforce.com/content/learn/projects/quickstart-vscode-salesforce/use-vscode-for-salesforce ) I have installed Salesforce CLi and ...
1
vote
0answers
22 views

Unable to authorize Salesforce Org using CLI, i have already enabled dev hub in the org

I get this error in vscode output Try this: Ensure the file /home/vishal/.sfdx/key.json has the file permission octal value of 600. 16:54:28.64 sfdx force:auth:web:login --setalias vscodeOrg --...
1
vote
1answer
30 views

SFDX CLI missing .exe file

I will try to configure sfdx for illuminated cloud 2. After instalation of salesforce cli (I tried both x64 and x86) the sfdx.exe file is missing inside the CLI folder so I can't add the path for this ...
4
votes
2answers
73 views
+100

How to activate Einstein bots in a new sfdx scratch org?

I tried a lot of combinations, but not matter what I do, the "Einstein bots" menu of my generated scratch orgs only targets to "Contact support to activate Einstein Bots" According to the trailhead, ...
5
votes
0answers
77 views

mdapi convert command fails when source has lightning web component bundle

With the latest CLI (sfdx-cli/6.52.2-c6cdc99881 (darwin-x64) node-v8.9.4) i have observed that the mdapi:source convert fails when the package has the lwc bundle . The salesforcedx plugin version is ...
2
votes
0answers
70 views

SFDX: Tests do not run in Visual Studio Code

I am relatively new to SFDX and have the most recent updates for both VSCode and Salesforce CLI. I am unable to run any Apex tests on a sandbox using the UI in Visual Studio Code. When doing so I ...
1
vote
1answer
90 views

Installing SFDX

I am trying to install sfdx on my windows 64 to create lwc, I have VS code with salesforce extension and lwc extension. I downloaded sfdx cli from here. https://developer.salesforce.com/tools/sfdxcli ...
0
votes
0answers
29 views

Dx deploy of permissionset requires Manage Profiles and Permission Sets

I'd like to have users be able to DX deploy to a QA environment but in order to deploy to that environment, they need either admin access or the permission "Manage Profiles and Permission Sets" in ...
3
votes
1answer
109 views

EAI_AGAIN errors when pushing or running unit tests in a newly created scratch org from Jenkins CI using SFDX

We sometimes get this error reported from a sfdx force:source:push of a largish code base: ERROR: Error: getaddrinfo EAI_AGAIN nosoftware-momentum-7459-dev-ed.cs9.my.salesforce.com:443 some six ...
0
votes
2answers
53 views

Salesforce DX Project Structure Clarification

I am having trouble understanding the capabilities of a scratch org. I am in need of someone to take a look and see if it is set up incorrectly or if I am understanding it's capabilities wrong. My ...
3
votes
0answers
71 views

Why CLI response time is very slow via Command prompt?

I am using Salesforce CLI and Visual studio code for Salesforce DX. The command prompt is taking very long time to execute the sfdx command. Is this because the system configuration which I am using ...
0
votes
0answers
47 views

How to connect Visual studio Code to Salesforce

I have connecting command prompt to salesforce using below commands. D: cd salesforce CLI cd bin sfdx force:auth:web:login -d -a DevHub But i cant able to connect Visual studio code to salesforce. i ...
1
vote
1answer
73 views

“fatal signup error” when creating scratch org

I have a Dev Hub that is set up in my Developer Edition org. I have been using it for DX development for several weeks, but when I tried to create a scratch org today with the same configuration file (...
1
vote
0answers
40 views

DX CLI and VS Code Extensions

I've got VS Code 1.30.1 (user setup) installed along with: Node: 8.9.3 VS Code Extensions: All the ones availble as part of the Salesforce Extensions Pack https://marketplace.visualstudio.com/items?...
0
votes
0answers
19 views

pushing code from one org to another using visual studio code [duplicate]

I know we can push code using ANT, I wanted to know if there is any other way to push code from one sandbox to another in Visual Studio code
2
votes
1answer
104 views

Usage of cli command - sfdx force:source:convert

I used force:source:retrieve to retrieve the given list of components (classes, workflows etc) and committed the files to git. Now I want to deploy these components to higher environments like QA and ...
3
votes
1answer
69 views

SFDX auth login is throwing an error “Windows cannot find error opening a https://login.salesforce… Make sure you typed the name correctly”

When I try to login to Dev Hub using this command in the terminal: sfdx force:auth:web:login --setdefaultdevhubusername --setalias NewDevHub I encountered an error as shown in the picture above. I'...
0
votes
0answers
128 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
0
votes
2answers
61 views

Saving metadata to git/bitbucket

How can we commit data from unpackaged folder to the repo folder. I have master repo created and want to commit the changes to the metadata which is retrieved via retrieve cli command. If I try to ...
6
votes
1answer
521 views

How to push code to production with Visual Studio Code & DX

I am using Visual Studio Code to develop new functionality. However, after completing the testing in the sandbox, I want to push the code to production. When I choose "SFDX: Deploy Code to org", it ...
0
votes
0answers
50 views

Salesforce DX setup Problems

I am using the developer edition of the salesforce as of now to learn development in Salesforce. I am tired of using the developer console as it becomes incredibly slow at times. I have been trying ...
1
vote
0answers
122 views

Authentication into Dev Hub does not work in CLI

I type in Salesforce CLI the following command: $ sfdx force:auth:web:login -d -a DevHub My browser opens up a login form. I pick the org which has Dev Hub enabled. Then in browser I am getting ...
2
votes
1answer
52 views

Unable to delete custom field using force:source:delete CLI command

I realize the command is still in beta, but I am unable to delete a custom field using the force:source:delete command. I have tried force:source:delete -m CustomField:myObject__c.myField__c, which ...
1
vote
0answers
32 views

Using Salesforce DX with B2B Commerce (CloudCraze)

we are about to work on B2B Commerce (CloudCraze) and are looking into the possibility of using the Salesforce CLI for CI/CD. Can anyone tell me, if this is generally possible and if there are any ...
1
vote
1answer
39 views

confused about the different org types involved in a salesforce development env

I'm new to SF development and only need to do some very small stuff for our org (e.g. triggers, custom fields)... This is our setup: we have a productive Salesforce org with a single licence for our ...
1
vote
1answer
103 views

hitting limits while creating a unlocked package version

I run the following command sfdx force:package:version:create -p SFExtension -d force-app -k xxxx --wait 10 -v DevHub and with my 6th (5 finished successfully) execution I get this error: ERROR: ...
1
vote
1answer
86 views

Script to dynamically generate XML file based on most Git commit contents (Salesforce CI)

I'm using DX for my Continuous Integration, but post-scratch org when I want to deploy into a traditional sandbox for staging, I'm struggling with an automated way to deploy only the new commits (as ...
3
votes
1answer
453 views

No Option for “SFDX:Authorize an Org” command in VS Code Command Palette

I have performed below steps- Install CLI Install extensions "Salesforce Extension Pack" and "Saleforce CLI Itegration" I am getting only few SFDX command options in Command Palette. Also i have ...
1
vote
1answer
167 views

SFDX: this.log is not a function when running create commands

If i run this command sfdx force:lightning:component:create --type lwc --componentname TEST_LWC --outputdir force-app/main/default/lwc I get this error message: this.log is not a function This is ...
2
votes
1answer
157 views

Best practice to setup a development environment with source control,vscode and sandbox

i have been working on the traditional way of developing within salesforce using Force.comIDE / aside.io / developer console. i want to move to a more robust way of writing code using a source control(...
1
vote
1answer
311 views

SFDX: Deploy Source to Org : Error - SourcePathInvalid

I am Getting SourcePathInvalid for file path c://projectpath//projectname/extension-output-#2 at deployment time. Please refer attach image for more details.
0
votes
1answer
130 views

sfdx Error while creating package version

I'm working on "Unlocked Packages for Customers" trailhead module. While creating the package version I'm getting below error: ERROR: The --path (-d) value, [force-app], and --package (-p) value, [th-...
2
votes
3answers
66 views

Salesforce DX Use Case

We are a small team of three members and planning to implement SFDX in our project, I have some questions regarding the same. Is there any additional cost involved on sfdx? I believe no, but not able ...
1
vote
1answer
23 views

Query Multiple SObject using Salesforce Cli

Is it possible to export multiple SObjects data records without using Parent Child relationship? Suppose there are 2 SObjects Transaction__c and Country__c independent of each other.. I want to export ...
1
vote
1answer
31 views

How to use SFDX to import related records using an External ID from CSV File?

My question is as the title stated. In data loader, we can achieve this by explained in this official article: https://help.salesforce.com/articleView?id=000002783&type=1 One field in object B ...
5
votes
5answers
329 views

“ logger is not defined” on sfdx force:user:display output? [BUG]

I'm getting ERROR: logger is not defined. error after issuing sfdx force:user:display command. What I'm trying to input is: sfdx force:user:display sfdx force:user:display -u username It ...
1
vote
1answer
48 views

How can I upsert & populate Lookups with external Id using sfdx?

Trying to run the following command on my org using sfdx (Upserting csv into my scratch org) : 'sfdx force:data:bulk:upsert -s Product2 -i ExternalId__c -f data/srv-allproducts.csv -u MyORG ' This ...
2
votes
0answers
28 views

SFDX Can't Pull Source from Scratch Org “Metadata API received improper input” AppMenu and AppSwitcher [duplicate]

I'm using SFDX and I made a change to the visibility of my app in my scratch org but when I try to pull the changes down (sfdx force:source:pull) I get: ERROR: Metadata API received improper input....
0
votes
2answers
51 views

Does Salesforce DX support Amazon Linux AMI?

Is there any way to install Salesforce DX CLI on an Amazon Linux AMI EC2 instance or does it only support Ubuntu? If it doesn't support the AMI OS, Is there anything on the roadmap? I need to the DX ...
2
votes
1answer
167 views

How to setup Bamboo with Salesforce CLI?

Is there any guide on how to setup Bamboo with the Salesforce CLI. We are not using SalesforceDX yet but just want to setup a job to deploy from GIT repo in BitBucket onto a sandbox. I guess the steps ...
0
votes
1answer
106 views

How to get a complete new PULL of the scratch org components?

Currently when we issue the sfdx force:source:pull -f command, SFDX only pulls the differences in components. I want to know if there is a way to get a complete refreshed copy of "force-app" ...
3
votes
1answer
269 views

Deploy sfdx project to another sandbox with CI

SFDX project folder structure is little different from previous folder structure where all metadata folders are inside src folder. ANT agent on our Continuous Integration tool works for the old ...
4
votes
2answers
1k views

SFDX: create project using manifest not available

I have visual studio code installed in my desktop and updated SFDX to its latest version. However, when I open up the command palette for 'Create project', I am seeing only the following two options ...
1
vote
1answer
76 views

How to automatically enable Recordtypes for Scratch org admin

Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile. Is there any way to automize that?
7
votes
2answers
156 views

Scratch org is created without Alias and reports “Cannot read property 'timeout' of undefined.”

From one day to the other I am unable to create scratch orgs using the command which worked before: sfdx force:org:create -f /Users/path/to/scratch-def.json -a MY_ORG -v DevHub -s -d 30 I receive ...
4
votes
1answer
443 views

SFDX CLI fails to connect to orgs with JSON error

I am using the latest CLI version 6.35.1-8b7320f7c2 and when I do sfdx force:auth:web:login -a DevHub -d ERROR: Unexpected token ] in JSON at position 88. Calling sfdx force:org:list renders ...
2
votes
1answer
321 views

Receiving Error: Entity of type 'flow' named 'xxxxxxxxxxxx' cannot be found when doing an sfdx force:source:pull command

I have made edits (Cloned/deleted old version) to a process builder in a scratch org and when I perform the sfdx force:source:pull command in GitBash I receive Error: "Entity of type 'flow' named '...
10
votes
2answers
654 views

SFDX Force:org:open fails and user is directed to the login screen

I have two scratch orgs that I've created this week, post Winter Release, that will not open from the command line using sfdx force:org:open. The login fails and I'm stuck staring at the login screen....
9
votes
2answers
2k views

SFDX Pull fails because of AppMenu/AppSwitcher

I created a scratch org with the new Winter release. After pushing my code without trouble, and updated it, I wanted to pull it to local files using : sfdx force:source:pull --forceoverwrite -u ...