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
6
votes
1answer
345 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
910 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 ...
16
votes
2answers
4k 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
3k 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
2k 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 ...
9
votes
2answers
3k 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
279 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
775 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/...
10
votes
4answers
5k 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
2k 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
670 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
108 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
3k 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
3k 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
256 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
51 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
529 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
69 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
787 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
534 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
346 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
554 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 ...
12
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
946 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
317 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
522 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
1k 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
434 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
656 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
0answers
734 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. ...
2
votes
2answers
940 views

Deploying for a salesforce dx project [non ISV]

After going through the trailheads for sfdx, it sounds like for the actual deployment to a sandbox/production (assuming the CI for test and all are completed) for a DX project is: convert the source (...
1
vote
0answers
241 views

Sfdx CLI (Windows) not updating [duplicate]

The update process gets to 6.72 MB/20.3 MB and gets stuck. Updating from sfdx-cli/5.7.6-d42cf65 (windows-amd64) go1.7.5 sfdxstable to sfdx-cli/6.0.16-3780698 (windows-x64) node-v8.6.0. I have ...
1
vote
2answers
3k views

Salesforce DX fails to pull report and dashboard metadata

I'm developing an app on Salesforce DX that includes some reports and dashboards. However, when I attempt to pull from my scratch org (named Scratch7) with the following command: sfdx force:source:...
2
votes
1answer
449 views

Data Duplication with Salesforce DX and Scratch Orgs

So I am testing out the Trailhead module App Development with Salesforce DX. As a part of this, I need to import data from a local JSON file into the scratch org. The Salesforce DX CLI command is ...
0
votes
2answers
875 views

Getting an error, “The scratch org does not belong to the dev hub username”. Not sure what to do

I'm doing one of the Salesforce DX trailheads and am running into an issue where the error message is, "The scratch org does not belong to the dev hub username" when creating a password for a scratch ...
5
votes
1answer
260 views

SFDX CLI Stopped working

I've got message saying "Plugin "salesforcedx" v41 or later may only be used in a v6.0.0 or later CLI", however CLI was working perfectly moments ago. What can I be missing? >sfdx version sfdx-...
2
votes
1answer
2k views

How do we create a scratch org with sandbox environment?

I am trying to achieve creation of a scratch org in the 30 days trail version of Dev hub account as shown below from Dream force 2017 Developer Keynote. . I got the below error! . Have anyone ...
1
vote
1answer
2k views

How to fetch entire org. metadata into a git repository using salesforce dx

I am trying to teach myself salesforce dx and to start development I am trying to create a git repository of my existing sandbox org. where lots of code and customisation is already done. I am ...
2
votes
1answer
4k views

SalesforceDx: Can't Authorise scratch Org

I am not able to authorize Scratch org in Force.com IDE 2. I am getting below error. Detailed log is as below. eclipse.buildId=unknown java.version=1.8.0_131 java.vendor=Oracle Corporation ...
-1
votes
1answer
126 views

Force.com IDE V2 new SFDX project w/ embedded space in project location directory name - fails to create

Detail Description: To get a hands on on Force.com IDE 2, I installed it on my system. But while creating a project it gives me below error. This error is becoz of white space in the project path. ...
5
votes
2answers
827 views

SFDX to MDAPI using multiple paths

I've been developing my application using a Salesforce DX trial org (and accompanying CLI). My sfdc-project.json file is setup to use two paths for the source code as follows: { ... "...
2
votes
1answer
2k views

Salesforce DX Trailhead Error

I'm working on Salesforce Dx trailhead . When creating Scratch org using command sfdx force:org:create -s -f config/project-scratch-def.json -a GeoAppScratch I'm getting this error: ERROR: No ...
5
votes
2answers
613 views

Salesforce DX: Duplicate files on force:mdapi:retrieve

When I retrieve an existing package from my Partial Sandbox on top of an existing Git directory where I have my code using the sfdx:mdapi:retrieve command, and then I convert this file tree to sfdx ...
4
votes
3answers
15k views

Retrieve all metadata from an existing sandbox (for Salesforce DX conversion)

I am really excited about Salesforce DX and I have playing with it for a while. However, I'm still looking for a way to retrieve all metadata from our client's sandbox in order to convert it to the ...
4
votes
1answer
1k views

Install the Command Line Interface (CLI) salesforceDX

I have installed CLI as per the guidelines and I have setup the environment variable as well. Then I entered sfdx command in command prompt as well as in GitBash, but it's not giving the proper ...
7
votes
4answers
1k views

Pulling Data from Scratch Org Salesforce DX

Recently started using Salesforce DX. Got a scratch org spun up and pushed some source to it. However I needed to create a new trigger, which I couldn't find a CLI command to do. So I instead created ...
4
votes
1answer
608 views

Salesforce DX: null data source deploy error

When deploying to by Partial Sandbox after converting my source into a deployable format, I am getting the following error: Deploying /var/folders/h2/tl008ns11qj1t8m4gqysfvgr0000gn/T/mdapipkg.zip... ...
5
votes
4answers
3k views

Salesforce DX Error Retrieving Admin Profile

When doing a sfdx force:source:pull command from my scratch org to collect my metadata changes made to Custom Labels, I get the following error: ERROR: Metadata API received improper input. Please ...
10
votes
2answers
2k views

SalesforceDX Stopped working

Went to try and use SFDX tonight (it was working a few days ago) and received the following Plugin "salesforcedx" v41 or later may only be installed in a v6.0.0 or later CLI. 41.3.0 I tried ...
1
vote
1answer
814 views

Unable to retrieve source package from Scratch Org

I've installed a managed package in my scratch org, and now I want to retrieve the source. sfdx force:mdapi:retrieve -s -r ./mdapipackage -p field_trip -u redacted -w 10 I get the error of: ERROR ...

1
6 7 8
9
10