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
4
votes
1answer
175 views

Moving from change set model to package development model

I am new to Salesforce and have few questions on the ways of developement and adoption of package model I have started working for a fairly large organization that uses Salesforce extensively and ...
2
votes
1answer
39 views

Moveing old changes from Production to package in SalesforceDX

So my problem is that I just moved to the company and they want to implement CI in way of work with salesforce. So what we did is promote to Enterprise ( it includes scratch orgs package in it ) and ...
3
votes
1answer
971 views

This org appears to have a problem with its OAuth configuration. Reason: invalid_grant - audience is invalid

Error while trying to authorize an org through JWT from SFDX CLI on Windows. sfdx force:auth:jwt:grant --clientid <myclientid> --jwtkeyfile server.key --instanceurl https://mysandbox.my....
0
votes
1answer
490 views

SFDX ERROR: Path must be a string. Received null

I recently set up a project using my home PC and have been working with it for a few days, however I've just tried to make some updates using my Macbook and have had a few issues, I've pulled my ...
0
votes
1answer
118 views

scratch org creation gives error on proxy

sfdx force:org:create -s -f ./config/project-scratch-def.json -a AppScratch using above command for scratch org creation gives error on proxy ERROR: location is not defined. i have ...
1
vote
1answer
445 views

LWC Deployment Errror

I'm trying to create a basic LWC for a Community which would be a button where Community admins could set the button text and the page value it should link to. I don't have any Problems, but when I ...
1
vote
3answers
3k views

Unable to Authorize Salesforce org using SFDX : Trailhead

Installed VS code , Salesforce CLI. iam doing salesforce trailhead Lightning web components. when i Authorize an org, keep on getting ERROR: getaddrinfo ENOTFOUND login.salesforce.com login....
0
votes
0answers
84 views

Using JWT with SFDX Not working

I try running the following command sfdx force:auth:jwt:grant --clientid XXXXX --username XXXXXX --jwtkeyfile /server.key --setdefaultdevhubusername I created the connected app on my Salesforce ...
0
votes
1answer
82 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
471 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
126 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 --...
2
votes
1answer
522 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
294 views

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, ...
8
votes
1answer
259 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
1answer
1k 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 ...
0
votes
1answer
709 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
44 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
394 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
112 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 ...
4
votes
0answers
380 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 ...
1
vote
1answer
908 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
324 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
220 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
25 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
521 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
171 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
558 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
0
votes
2answers
281 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 ...
13
votes
3answers
6k 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
124 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
412 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
441 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 ...
2
votes
1answer
136 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
80 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
400 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
408 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 ...
5
votes
2answers
5k 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 ...
2
votes
1answer
293 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
285 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
3k 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
2answers
927 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
160 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
58 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
144 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
437 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
397 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 ...
3
votes
0answers
37 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
134 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
504 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 ...
1
vote
1answer
1k 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" ...