We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [.forceignore]

.forceignore file to specify the files or directories you want to exclude in Salesforce DX project

Filter by
Sorted by
Tagged with
2
votes
1answer
83 views

Why does SFDX pull unwanted object data and how to prevent it

I have an app that puts Lightning Web Components on the Flexipages of Accounts and Contacts. I also have a Flexipage for both in my App. I guess that is the reason for SFDX pulling in the object ...
3
votes
2answers
278 views

Multiple .forceignore files

I have a need for multiple .forceignore files in my Salesforce DX project. The reason for this is that there are files that I would like to have in development (scratch orgs) but I do not want to ...
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:...
3
votes
1answer
218 views

Using .forceignore to ignore listViews for certain objects

I am trying to make it so we can create list views in scratch orgs that will not be pulled into our source when developing. I have created a .forceignore file in the root directory. My .forceignore ...
5
votes
0answers
216 views

Ignore Lightning Application with .forceignore

Using SalesforceDX, I am currently having trouble finding a way to ignore a lightning application created in my scratch org; the force:source:status always seem to include it. The name of the Aura ...
7
votes
1answer
818 views

.forceignore isn't detecting the files

After playing a bit with Salesforce DX, pushing and pulling stuff, I decided to try out the .forceignore file, but I can't seem to make it work. At the moment I have the following structure: and my ....