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.

3
votes
0answers
25 views

DX Orgs and Custom Settings

I ran into an issue whereby I created a hierarchy custom setting in my DX scratch org but when I used the SDFX CLI to pull down the metadata it was ignored. I had used list custom settings before and ...
0
votes
0answers
21 views

How to add ignore managed package components in forceignore file?

How to ignore packaged components in forceignore file? I tried with below but not working. can you please look and suggest to me. **/*CloudingoAgent__* *CloudingoAgent__* package namespace start ...
0
votes
1answer
30 views

How to check deployment history in production org

In production org when I click on the deployment status, it shows a list of passed and failed deployments like below image if it is deployed from a changeset then in name section it shows the name ...
2
votes
1answer
101 views

How is this possible to use the Salesforce CLI after changing my user's password?

Couple of days ago, when logging in to the Org via browser, I was prompted to update my password. Last time I used Salesforce CLI was 2 weeks ago and today I had to do it again. However, no password ...
1
vote
0answers
43 views

Why “sfdx force:auth:web:login” encounters runtime error, and how to get around it?

I am trying to develop with Salesforce DX. There is a new problem since I restarted this project after a two-month break. Every variation of the auth:web:login command fails the same way. force:org:...
0
votes
1answer
30 views

Salesforce CLI not available in sandbox

Under Connected Apps OAuth Usage, Salesforce CLI is not available to install. How to get it like below image
0
votes
1answer
46 views

Unable to login sandbox using Salesforce CLI

{ Error: spawn cmd ENOENTat Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)at onErrorNT (internal/child_process.js:415:16)at process._tickCallback (internal/process/next_tick.js:...
5
votes
2answers
51 views

enable “Data Protection and Privacy” when creating scratch org

Is there any way how to automatically enable "Data Protection and Privacy" option during creation of scratch org (in definition file)? I didn't found any mention about this metadata in Metadata API ...
7
votes
1answer
61 views

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

I have tried to run renameMetadata call from Ant Migration Tool <target name="1. Rename field on Sandbox"> <sf:renameMetadata username="${sf.Sandbox.username}" password="${...
7
votes
1answer
70 views

Scratch org was created with entitlements enabled, but pulling the source results in entity not found?

I created a scratch org with the following definition file: { "orgName": "Company, Inc", "edition": "Enterprise", "features": ["PersonAccounts", "ServiceCloud"], "settings": { "...
0
votes
1answer
19 views

Error When Deploying Quick Action With Predefined Lookup Field

I have a Quick Action which works fine and has predefined field to a lookup record, AddressType, though it happens in all cases. When deploying to scratch org I get error Formula result is data ...
0
votes
0answers
54 views

Getting error: The service and account specified in key.json do not match the version of the toolbelt

I am new at Salesforce DX. I am trying to connect to my account from sfdx plugin, I typed in the terminal: sfdx force:org:open -u my_username but it gives me an error: ERROR running force:org:...
0
votes
0answers
18 views

Add AppExchange app dependency in sfdx-project.json

We are trying to build up a scratch org with sfdx-project.json file... Post that we are deploying all the live code to it from git... Now during the code deploy, we are facing issues due to the fact ...
1
vote
1answer
86 views

Generate sfdx-project.json

I would like to create a new version of my package. I work with Jenkins so I clone my git repository once time ==> my sfdx-project.json is in default : sfdx-project.json : { "packageDirectories": [...
4
votes
1answer
42 views

How do I reset the SFDX CLI Runtime Global Configuration Values?

I had sometime back set the apiVersion CLI Runtime Configuration value globally for all projects to version 45.0 when I signed up for Spring '19 preview sandbox, using the command: sfdx force:config:...
1
vote
0answers
35 views

SFDX hello:org plugin not available when installed from npmjs

I've create a SFDX Plugin with sfdx plugins:generate. When the plugin is linked using sfdx plugins:link . the command hello:org is available and work properly. When this same plugin is deployed to ...
0
votes
0answers
20 views

Create scratch org error: storage limit exceeded

I have an old dev org with dev hub enabled. I'm trying to create the first scratch org for this one but I'm getting the following error: storage limit exceeded I'm creating the scratch org using ...
0
votes
0answers
18 views

SFDX Modular Package Development

Is it possible to push source for different package directories? Using Easy Space LWC as an example, I would like to work on es-base-objects (develop on a scratch org and build on CI), how is that ...
0
votes
1answer
37 views

How to create scratch orgs with custom object/fields

New to DX and I faced the following issue: In my Prod environment I have set of custom objects & custom fields. When I create scratch Org I would I like this Org to have all these fields, so the ...
6
votes
0answers
41 views

Enterprise edition Scratch Org with Customer Community Licenses

Looking to understand whether it is possible to get Customer Community licenses in an Enterprise Edition Scratch Org. Scratch Org definition I tried to use for this was the following: Scratch Org ...
1
vote
1answer
57 views

DX retrieve metadata folder for deployment - folder self destructs

I'm attempting to retrieve metadata from my sandbox org in order to deploy to production. I've been doing this over the past month or so using the following commands in my VSCode terminal: export ...
0
votes
0answers
11 views

Uploading SSL Certs

Is it possible to upload an SSL certificate and/or custom branding media via self created DX package? I saw that there are database entries for those things in the SOQL workbench but not sure if they ...
0
votes
0answers
16 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
198 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
14 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
56 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 ...
3
votes
0answers
61 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 ...
3
votes
1answer
84 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
287 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
47 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
134 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
115 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
4answers
1k 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 ...
1
vote
3answers
2k 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
23 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 ...
2
votes
1answer
91 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
134 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
358 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
110 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
34 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
48 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
88 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
1answer
94 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
201 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
61 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
32 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 ...
3
votes
1answer
126 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
62 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
150 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
66 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 ...