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
0answers
14 views

Test SalesforceDX CLI Plug-in documentation

Does anybody knows where can I found the documentation explaining how to test SalesforceDX Plug-ins? I am asking specifically about testing SFDX CLI Plugins and not how to create the Plug-ins.
0
votes
0answers
25 views

DeployFailed: Deploy failed. Visual studio code - Deploy to source code failed - SFDX Lightning Component Trailblazer

I tried to do the trailhead module "Create a Hello World Lightning Web Component" and I followed all the steps but when I do deploy to source to org, it fails. The error which I get is: "DeployFailed: ...
1
vote
0answers
11 views

Assigning Connected App to Permission Set through SFDX

I'm working on scripting out a scratch org that will have a Connected App w/ a Permission Set. I can get the Connected App & Permission Set imported from JSON, and I can assign a user to the ...
1
vote
1answer
41 views

Authorize a DevHub using SalesforceDX without password

I am working on SalesforceDx and I have to authorize my devhub by just using Username of the org I dont want to enter password. I have tried JWT token for authorization but it uses an OPEN SSl ...
1
vote
0answers
23 views

Pushing a Connected App with the SFDX CLI results in “invalid cross reference id”

I'm working towards moving an existing managed package over to the SFDX CLI metadata format. Part of the application is a Connected App which forms a core part of a SSO process to an external system ...
1
vote
1answer
28 views

Code Coverage during sfdx force:mdapi:deploy

I am trying to do a sfdx force:mdapi:deploy to my production org. I am just migrating one class file, however when I do that I keep getting code coverage failures on custom classes that are already in ...
1
vote
1answer
44 views

Deploy from Sandbox to Production Org SFDX

I created an SFDX project with manifest in VSCODE, authorized my sandbox org and retrieved source from manifest on the default package.xml. At this point I had the base setup with classes, triggers, ...
5
votes
1answer
27 views

How do I view a list of packages installed in a DevHub org using the SFDX CLI?

When I run: sfdx force:package:installed:list -u DevHub (where DevHub is the alias of my production org, which IS enabled as Dev Hub and also has 2GP enabled) I receive this error: ERROR ...
0
votes
1answer
36 views

Visual Studio and Salesforce CLI : Not able to authorize org

I just recently to download Salesforce CLI + Visual Studio with Salesforce Extension Pack. I tried to retrieve code from Salesforce instance not from Scratch org. Just for your knowledge, I am not ...
1
vote
0answers
26 views

'ENOENT': spawn cmd ENOENT error while authorizing sandbox org in VSCode

Hi I have installed VS Code and salesfoce CLI, extensions also. I have created my first project. When i am tryin to authorize org in it i am getting below error: Starting SFDX: Authorize an Org 14:...
1
vote
3answers
220 views

Authorize Org failed in VS Code

I am new in learning lightning web component. I have installed VS Code, salesforce extension pack inside VS code, Salesforce CLI and set environment variable C:\Program Files\Salesforce CLI in my ...
0
votes
1answer
478 views

Error while creating scratch Org

I was trying to create a scratch org following the trailhead https://trailhead.salesforce.com/content/learn/projects/quick-start-salesforce-dx/create-and-test-our-scratch-org?trail_id=...
1
vote
0answers
20 views

sfdx force:source:convert is not converting CustomObject

I am a newbie to Salesforce and DX. We are not completely ready to move to DX at the moment, so, we are trying to do deployments (without ScratchOrgs and Packages) using package.xml. Here is what I ...
1
vote
1answer
48 views

sfdx cli throwing error “EISDIR: illegal operation on a directory” after upgrading to v7

After upgrading to v7, all commands throwing the same error and then completing the actual command. Output of sfdx --version command: john@john-Latitude-E7440:~/workspace/Project_Folder$ sfdx --...
2
votes
1answer
83 views

rollbackOnError option must be true on a production org

I have followed the same process i always do; sfdx force:source:convert -d ./package sfdx force:mdapi:deploy -d ./package -w 100 I have only started getting this error in the last day. Even when i ...
3
votes
2answers
128 views

Error when running sfdx update to 7.1.3 then sfdx push errors

When I ran sfdx update from 6.56.0 to 7.1.3 I got the error below. And when I run sfdx force:source:push I'm getting the below error. Are these two related? I'm not sure where to start on the second ...
2
votes
1answer
56 views

ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data

Background I get this error message: ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data. In the VSCode output panel, when I try and run a unit test: Starting Run ...
2
votes
2answers
30 views

How to sign a SFDX Plugin?

I have created my plugin using sfdx plugins:generate and then I deployed it to npm. When I try to install it using sfdx plugins:install I got the message: This plugin is not digitally signed and its ...
0
votes
0answers
33 views

sfdx.force.test.view.refresh not found

Summary When trying to use the integrated test side bar, no tests are being displayed. When clicking on "refresh" an error message is displayed saying "command 'sfdx.force.test.view.refresh' not ...
0
votes
1answer
32 views

Salesforce CLI Authorization timeout

I am attempting to setup VS Code with Salesforce CLI. I am experiencing issues when attempting to authorize my Sandbox. When I attempt to authorize, I enter the MyDomain login page address and set ...
1
vote
0answers
49 views

Apex class 'SiteLoginController' does not exist (scratch org)

I've created over 40 scratch orgs with the following config, without issues. { "orgName": "MyScratchOrg", "edition": "Developer", "features": ["Communities","PersonAccounts","SiteDotCom","...
0
votes
2answers
71 views

Main markup cannot be empty. If you are trying to delete the Lightning definition bundle, directly delete the bundle instead

When I run this command: sfdx force:source:deploy -x manifest/package.xml I get this response: PROJECT PATH ERROR ──────────────────────────────────────────────────────── N/A ...
1
vote
2answers
33 views

How do I insert lightning web component child templates and their JS files using SFDX?

Context I have a parent component in vscode. parent.html <template> <my-child-component></my-child-component> </template> parent.js import { LightningElement, api } ...
1
vote
0answers
31 views

At what time in the day does a scratch org expire?

At what point in the day does a scratch org expire? I am working on a scratch org that expires today (3/11) and am still able to log and run commands against it. Should I anticipate being able to ...
2
votes
1answer
49 views

DX CLI force:data:tree:export Query returned no results

Records are returned when I execute this sfdx force:data:soql:query -u Dev --json --query "SELECT Id, Name, (SELECT Id, Name, AccountId FROM Contacts) FROM Account WHERE Id IN ('0010z00001T1uXSAAZ','...
1
vote
1answer
29 views

how to pass variables as parameters salesforce cli - sfdx force:apex:execute

How to pass a powershell variable as parameter to apex execute $paramstring = 'long json string from a local file'; sfdx force:apex:execute apexclass ac = new apexclass($paramstring); ac.mainmethod();...
2
votes
1answer
77 views

Has anyone used the Salesforce DX CLI “shape” command?

In the Salesforce Winter '19 release, the Salesforce CLI recently was updated with a command with a CLI call: sfdx force:org:shape. force:org:shape:create create a snapshot of org edition, ...
1
vote
1answer
34 views

Creating package version of package depending on some other packages

So i created package on two other packages. One is managed package from AppExchange named propel and the other is unmanaged package made on my production holding some of metadata that are there. So ...
0
votes
1answer
36 views

How to select scratch org in SFDX

I am new to Salesforce DX and start using VS code and I have created three scratch org while working and now I want to switch between my scratch org, How can I do that? example I want to switch to ...
2
votes
1answer
52 views

Enable Advanced Currency Management using CLI

Is it possible to enable Advanced Currency Management (see image) using CLI? I need to enable it in the scratch org. The use case is that our test classes require that Advanced Currency Management is ...
4
votes
1answer
83 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 ...
1
vote
1answer
35 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
157 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
98 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
0answers
69 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
185 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 ...
0
votes
1answer
425 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
33 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
27 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
88 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
40 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
129 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
128 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, ...
7
votes
0answers
150 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
419 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
304 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
36 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 ...
4
votes
1answer
217 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
75 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
215 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 ...