The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
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....
3
votes
0answers
649 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 ...
7
votes
3answers
621 views

Can I connect to a sandbox using JWT Flow and Prod connect app?

I'm trying to connect to a sandbox using the sfdx cli and the JWT flow through force:auth:jwt:grant. According to this Salesforce DX doc, we can use the same connected app information from Production ...
16
votes
1answer
5k views

Salesforce DX - how to set default devhub if I missed the -d option when connecting to devhub

If I missed the -d option when using sfdx force:auth:web:login, is there a way to reset it as default devhub afterwards? I searched through the document but didn't see any.
7
votes
0answers
871 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 ...
7
votes
1answer
853 views

Profile Field Level Security missing in XML when retrieve profile changes from scratch org

In our DX project we maintain 4 profiles (3 custom and the System Administrator profile). When a scratch org is created I can push the project and everything deploys correctly including the profiles ...
0
votes
1answer
119 views

Error when pushing to existing scratch org

I keep getting the error Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field when pushing to an existing scratch org. After doing some ...
0
votes
1answer
197 views

How to remove scratch org details from metadata

When I pull down metadata from my production org (which is my devhub org), I have issues with scratch org metadata meddling with my repo. For example I have custom profiles that were created on the ...
4
votes
2answers
61 views

stop tests from running on meta data deploy

I know from the docs that you can prevent tests from running to deploy code. When I use this command to deploy to my full sandbox sfdx force:mdapi:deploy -d ./src/ -u Migration -w 100 -l NoTestRun I ...
5
votes
2answers
1k views

Export SOQL CLI Results to CSV

I've got a automated Cron-like job that exports some data from Salesforce on a regular basis. The goal is to regularly export SFDC data to csv or tsv. I'm using the sfdx tool to perform this query - ...
2
votes
1answer
393 views

How do you pipe commands from the Salesforce CLI to a text file?

I can use this to display a list of currently authed orgs: sfdx force:org:display ...and the same in JSON format: sfdx force:org:display --json However, trying any of these or similar ...
0
votes
1answer
1k views

sfdx force:source:push Cannot read property 'getSourcePath' of undefined

When executing force:source:push --forceoverwrite I was receiving the following error when trying to delete a component locally and push the changes. ERROR: Cannot read property 'getSourcePath' of ...
1
vote
1answer
369 views

How to have a scratch org open to LEX on first login?

I'm creating a bunch of scratch orgs to be used for a training workshop, and I've found that whatever I do, the first login takes you to Service Console instead of Classic or LEX. Ideally, I'd want it ...
2
votes
1answer
211 views

How to fetch salesforce dx output json when error happens

I am writing a node js program to execute salesforce dx cli commands. And I am using --json option to fetch the data. When the result is successful, it works perfectly fine. But when error happens, ...
0
votes
0answers
277 views

DX: force:soure:push Cannot read property 'getAggregateFullNameFromFilePath' of null

I'm following this Trailhead tutorial and I'm at "Creating Additional Lightning Components" step 9 where I need to push my lightning components to my scratch org, but when I try to do so I get the ...
9
votes
0answers
212 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 ...
9
votes
1answer
569 views

How to specify a managed package key in a sfdx-project.json dependencies entry?

It seems like it should be simple, but I have googled this and failed. I'm writing a project using Packaging 2 in sfdx, and it depends on an old managed package. I've installed that package into my ...
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 ...
6
votes
1answer
270 views

How to raise an issue about “sfdx force:apex:test:run --resultformat human”

As most Salesforce test runners report a stack trace that points to the failed test line (and usefully the calling lines that is helpful when more complex test classes are used) we generally do not ...
5
votes
1answer
676 views

Salesforce DX and Managed Package

I'm a bit lost on how to transition from our managed package structure to Salesforce DX and Packaging 2. We want to get our existing metadata into Salesforce DX structure to create our VCS ...
15
votes
1answer
2k views

How to use “sfdx force:source:pull” with folders other than “main/default” where components are added in the scratch org?

I've setup the folder structure for a new project following the pattern identified in sfdx-isv/sfdx-falcon-template. Also see this question Two SFDX project folder structure questions for some ...
11
votes
4answers
2k views

Can .forceignore be used to not pull profiles that only exist in the scratch org?

I have an SFDX format project that contains some components but I do not want any profiles to be present. When I do a: sfdx force:source:status to see what files would transferred by a sfdx force:...
6
votes
3answers
1k views

What is the DX scratch org feature for AccountContactRelation CustomObject

When I attempt to push a custom profile to my scratch org that contains a layoutAssignment to the AccountContactRelation object, I get the following error: In field: field - no CustomObject named ...
7
votes
1answer
2k views

sfdx - is it possible to pull or push one file instead of all the files

In Salesforce DX, I read through the document but it seems to me I can only use sfdx:force:source:push or pull to push or pull all the files. Or use .forceignore to ignore some files. However, is ...
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' ...
0
votes
1answer
534 views

No Scratch Org Definition Configuration Value For Contacts to Multiple Accounts

There is currently no way to enable "Contacts to Multiple Accounts" in the scratch org configuration file: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/...
9
votes
4answers
3k views

How to open a scratch org created in another machine

I have created a scratch org on my home machine and it is active and can be seen in the devhub. And I am now on my office computer. However, when I use sfdx force:org:list I can't see that ...
0
votes
0answers
1k views

sfdx command cannot be found even after the path has been added into system path

After installing sfdx cli tool in my machine (My IT department helped with that since I don't have admin access), the related path doesn't seem to get automatically installed. So I added that myself. ...
1
vote
1answer
489 views

Push & pull data with sfdx commands

We were trying to export & import data from a sandbox using the sfdx tree export command. Even after going through the different links on google I could not understand how will we export a ...
0
votes
1answer
80 views

invalid_app_access Status on DevHub

I get an invalid_app_access Status on one of my DevHubs after I set up a CI job with JWT authorization in Circle when I remove my Admin Profile from those assigned to the Connected App. I had ...
1
vote
2answers
2k views

Using SFDX, getting “The package root directory is not a source directory.” when converting source to metadata

Tried to run this command: sfdx force:source:convert -r ./ -d mdapioutput from my project root, and got this error: The package root directory is not a source directory
3
votes
1answer
2k views

SFDX CLI runtime error

I'm getting the following error when trying to access the sfdx command. Does any one know what's happening? The only words I actually understand are the "not a directory", but I'm not sure which one ...
8
votes
1answer
241 views

“Cannot set property color of #<CLI> which has only a getter” when running sfdx commands

I'm getting the following error when running any sfdx command with the latest version of the Salesforce CLI on macOS High Sierra: Cannot set property color of #<CLI> which has only a getter I'...
5
votes
1answer
49 views

Create non-text-based components using Salesforce DX and Visual Studio Code

I'm diving in head first into Salesforce DX. Spinning up scratch orgs, using the packaging 2 API, and converting between Metadata API and Salesforce DX friendly formats is making my eye twitch, but I ...
0
votes
1answer
401 views

What does scratch org status of “Missing” mean?

I ran the sfdx force:org:list --all command. Several scratch orgs are listed with a value of Missing in the STATUS column. The EXPIRATION DATE is blank for all scratch orgs with the Missing status. I'...
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: ...
3
votes
0answers
695 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 ...
3
votes
1answer
407 views

sfdx doesn't track changes to static resources

We are testing skuid (a managed package) with salesforceDX. And using the skid's "Build base pack" followed by the sfdx force:source:pull, the staticresources folder is created with the files. Now ...
6
votes
1answer
230 views

Create a beta package adding a post install script using Salesforce DX

Is there anyway to specify (using Salesforce DX) that the package I want to create includes a post install script? https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/...
3
votes
1answer
458 views

Using DX Scratch Orgs to deploy code with legacy ant scripts

We are considering migration of our managed package development process to Salesforce DX. But we are definitely not ready yet to transform our code base and use full potential of SFDX, but still ...
11
votes
1answer
1k views

Salesforce DX multiple computers connected to same Scratch Org

I am having a bit of trouble conceptualizing how Salesforce DX works. I just received a new computer for work and I set up the sfdx-cli and everything to get going. In my Git repo, I have all my ...
8
votes
2answers
581 views

“UNKNOWN_EXCEPTION” when trying to deploy Permission Set

I'm trying to deploy an app to a packaging (Developer Edition) org. I successfully pulled the source from a scratch org and successfully converted the source using force:source:convert. I run the ...
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 ...
2
votes
2answers
424 views

salesforce DX installing managed package and status response in an automated environment

Requirement: A scratch org with skuid installed for CI with sfdx. So everytime we run test in a scratch org via a CI server, i need the scratch org to have skuid (managed package) to be pre-...
2
votes
1answer
863 views

sfdx force:source:push does not allow .forceignore for AuraDefinitionBundle

I have been following the documentation for excluding file types from the sfdx force:source:push command at https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/...
0
votes
0answers
272 views

Salesforce DX error

I am following the trailhead provided by Salesforce for Salesforce DX and when I run the command "sfdx" I see the below error message. I have set the path variable for GIT correctly but not sure why ...
5
votes
2answers
409 views

Set History Tracking missing from SFDX code [duplicate]

I went to put my newly create sfdx application onto a different scratch org. It seems as if the configuration of the 'set history tracking' is not saved when you pull. I verified if I changed the ...
1
vote
1answer
306 views

Invalid filter: <> Name: RecordTypeId, Error: Invalid record type name or ID: SFDX push

I'm trying to migrate an application from a sandbox to a sfdx application. I am working through the errors and I am running into one that I don't understand. Invalid filter: Id: U#3d3.7ff (...
1
vote
0answers
513 views

Ignore errors when force:source:push

Our ISV team has a developer org full of testing stuff (not meant to be included in the managed package we generate). In order to stop all working in the same org, we would like to use scratch orgs. ...