Questions tagged [salesforcedx-cli]

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

96 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
210 views

Scratch orgs and Critical Updates

I notice that all the scratch orgs I've been creating starting in Spring '18 open up with a reminder to Enable the New URL Format for Lightning Experience and the Salesforce Mobile App. Another update ...
7
votes
0answers
869 views

SFDX mdapi convert does not generate necessary object-meta.xml

I have a simple package that I pulled down from my production org that I am now looking to push:source to a scratch org. The issue is that when I run sfdx force:mdapi:convert -r test/unpackaged I ...
6
votes
0answers
85 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 ...
6
votes
0answers
1k views

DX: force:source:pull returns “no results found” immediately after “force:source:status” reports Remote Changed?

Spun up a new scratch org and pushed source that was just converted from MDAPI. Logged into the org and activated a lightning home page that was part of the source push. After which, sfdx force:...
5
votes
0answers
92 views

BASH variables in SFDX breaking dot notation in queries

With the most recent update to SFDX CLI, I've noticed that my queries that use dot notation in the select now retrieve null for dot notation columns if I use a bash variable. It's really quite ...
5
votes
0answers
281 views

How do I manage my salesforce communities with sfdx?

I have a salesforce community site, and it is built off mostly visual force pages and apex classes. I would like to move the 'application' into sfdx. I am able to, with a little coaxing, deploy the ...
4
votes
1answer
65 views

SFDX - file symbolic link error

File Symbolic links are no longer working, at least they are not when using any version newer than salesforce-cli v46.6.0. Unexpected errors are presented when pushing code to scratch orgs (sfdx ...
4
votes
2answers
321 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, ...
4
votes
0answers
404 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 ...
4
votes
0answers
2k views

SFDX Deploy: Global Value Set Cannot Be Resolved

I am trying to use DX to deploy to a sandbox. It has been a major hassle. At this point the only error I get is this: Global value set 'External_Evaluation_Required__c' in record type 'Exception' ...
4
votes
1answer
587 views

DX Deploy - no Quickaction

I'm having trouble deploying to a sandbox. Profiles have been a pretty major pain, so I simply removed all profiles from the mdapi output dir. Now I am fighting QuickActions. In each of my layouts I ...
4
votes
0answers
256 views

Salesforce DX - Help for data:tree:export

I have a dev hub trial org where I have created an account record with the name 'Chaser' and it has an Id of '0011N00001Eam4C' When I run the following command, I receive 'Query Returned No results' ...
4
votes
1answer
284 views

force:source:pull fails with Can't retrieve non-customizable CustomObject named: ApexTestResult

I deployed source to a scratch org, then ran some unit tests locally in the org. Now when I do sfdx force:source:pull I get: ERROR running force:source:pull: Can't retrieve non-customizable ...
3
votes
0answers
21 views

Character encoding difference between source:retrieve vs mdapi:retrieve?

Here is the screenshot of a simple validation rule in Salesforce: and I am now going to retrieve this validation rule using three different options and notice how the ' (apostrophe) is escaped(or ...
3
votes
1answer
27 views

Automatically close Output window in vsc running salesforce CLI

I have switched from Sublime to VSCode. I have found ways to make most of VSCode work the way I want. The main thing I wish I could do is when I deploy to the org if it is successful I would like ...
3
votes
0answers
29 views

Is Anyone Else Seeing sfdx force:apex:log:tail Only Using The SFDC_DevConsole DebugLevel Regardless of Setting --debuglevel Flag

Okay so I've read the answer here How do I set the log levels for force:apex:log:tail? as well I have read all the documentation I can find for the sfdx force:apex:log:tail command. And everything I ...
3
votes
0answers
108 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 ...
3
votes
0answers
147 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
183 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'...
3
votes
0answers
400 views

sfdx Sharing Settings scratch orgs

We use in our org case sharing (Setup-->Security Controls-->Sharing Settings-->Case (Default Internal Access From Public Read/Write/Transfer to Private)) Wa want this sharing settings in place when ...
3
votes
0answers
648 views

Salesforce DX errors Pushing to scratch org

I'm using DX to push my metadata from an existing org to a scratch org. I have no idea how to resolve this errors and I have looked online but no help and also I looked someone posted here but did not ...
3
votes
0answers
694 views

DX force:source:pull ERROR: Cannot read property 'fileName' of undefined

What could cause this, and what can I do to fix it? I think this stemmed from a change I made to a custom object, Invention__c. I deleted the default "Invention Layout" and replaced it with two ...
2
votes
1answer
20 views

SFDX CLI export more than 10k records

I'm trying to export records from an object that holds 20k records, and I'm using the sfdx force:data:tree:export command but it returns a max of 10k records. How do I export the remaining records, ...
2
votes
0answers
25 views

Creating data with DX/CLI referencing existing records

When setting up a scratch org for CI/QA or development purposes certain "records" like the standard profiles and some other record like Accounts & Contacts ("hasSampleData": "true") are created ...
2
votes
1answer
125 views

Issue to push static resource (single files and zip) using SFDX

have any of you faced issues to push static resources to scratch orgs using SFDX v46.8.0? Asking because I faced this issue and had to revert back salesforcedx plugin to 46.6.0. path\singleFile....
2
votes
2answers
104 views

FlowDefinition isn’t supported

I have an up to date SFDX and plugins. I continue to get the flow definition error when pushing with Illuminated Cloud to my scratch org. I am not sure what the next steps should be as I have followed ...
2
votes
1answer
204 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
0answers
60 views

Do subsequent Unlocked Package version installs deploy FLS?

I've created an Unlocked Package using Salesforce CLI and installed the first version in an org. I've checked the Field Level Security for each Profile and they were all correct. But when I changed ...
2
votes
0answers
95 views

Push custom profiles to Scratch org using Salesforce CLI

I pushed custom profiles to scratch org from my dev org. But permissions of profile were not set in scratch org. I want my scratch org profiles to look exactly same as in my developer org. Please let ...
2
votes
0answers
143 views

SALESFORCE DX: Ancestor package version not installed when creating new scratch org

{ "packageDirectories": [ { "path": "force-app", "default": true, "ancestorId" :"05i7F000000CaRgQAK", "id": "0Ho7F000000GmbCSAS", "versionName": "Version 1.0", "versionNumber": "1.0.0....
2
votes
0answers
120 views

ERR_CONNECTION_REFUSED on DX DevHub trial org

I'm not sure what I'm doing wrong, but I signed up for a DevHub trial org, got the verification email, clicked the verify link and immediately got a This site can’t be reached [domain].my....
2
votes
0answers
59 views

Report metadata cannot be found after pulling renamed report folder with DX

I have a report and folder in my scratch org. The report was renamed from Custom_Reports to Org_Reports. Now I receive the following error when attempting to execute the force:source:pull -f command: ...
2
votes
0answers
285 views

Salesforce DX - Managed packages

I am trying to convert one of our managed packages to DX. I run into trouble when converting the Metadata Package into DX format using the command sfdx force:mdapi:convert -r ./temp/ I get an error ...
1
vote
0answers
15 views

SFDX: Get Apex Debug Logs for Site Guest User in VS Code

How do I get Debug Logs for Site Guest User in VS Code? I ran SFDX: Get Apex Debug Logs and I can see debug logs for my user. But what I want is debug logs for Site Guest User which I don't see in the ...
1
vote
0answers
19 views

Testing custom salesforce plugin

I am currently trying to test a custom salesforce plugin which deploys a payload to a specific org. The plugin itself is coded in typescript and the unit tests are using mocha/chai. I am running ...
1
vote
1answer
37 views

Analysis for SFDX Apex || sonarqube Community Edition

Is there a way to support SFDX Apex Analysis with sonarqube Community Edition version 7.2 or above. If not then is there any previous Community version which may support it ? Many thanks in advance.
1
vote
1answer
96 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:...
1
vote
1answer
89 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 ...
1
vote
1answer
65 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 ...
1
vote
0answers
21 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.
1
vote
0answers
19 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
0answers
245 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
0answers
32 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
0answers
40 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 ...
1
vote
0answers
134 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
1k 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
0answers
235 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?...
1
vote
0answers
435 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 ...
1
vote
0answers
210 views

How to delete a class in Salesforce DX using CLI

I am trying to remove classes and pages from my scratch org. I have removed them my local repo and did sfdx force:source:push but I am getting the below error. Any idea how to resolve? ERROR: Path ...
1
vote
0answers
1k views

sfdx force:source:push - always pushes everything

I'm following the App Development with Salesforce DX Trailhead module in order to finally learn it. I've been doing one step at a time from Trailhead, adding the custom Account Field, Apex Controller, ...