New answers tagged

0 votes

SF Package Install Warn - @salesforce/plugin-packaging different from the version specific by sf - Type Error - this.config.plugins.filter is not a fn

Try running the command: sf plugins reset
Alper Tovi's user avatar
0 votes

Custom Metadata Type Records Mass Insert

Please make sure that the csv files you are using for uploading custom metadata records has column for all the fields of the custom metadata even if that fields doesn't have any value on that record.
Avinash Jha's user avatar
0 votes

sfdx-mohanc-plugins error

This issue can be resolved by ensuring yarn is installed globally. I had previously run into a similar issue when trying to update plugins and would get an "exited with code 1" message. npm ...
mvogelgesang's user avatar
0 votes

How to remove a Package from my DevHub org?

You can follow the next steps to delete an Unlocked Package from a Salesforce Dev Hub using the Salesforce CLI. To delete a package or package version, users need the Delete Second-Generation Packages ...
Valentos's user avatar
0 votes

Getting error while installing sfdx scanner plugin

This looks to be a npm (node js package manager) connectivity issue Either you have a limitation set by your network admins, either npm was down and you should try again :)
Nicolas Vuillamy's user avatar
0 votes
Accepted

Can I retrieve project files from production using the sf CLI?

As answered on the GitHub issue I posted for this sf project retrieve start (with no flags) will try to retrieve the changes, and requires source tracking. Possible options sf project retrieve ...
Z0q's user avatar
  • 155
2 votes
Accepted

Is it possible to deploy by filename using the new CLI?

If you look further down in the documentation on sf project deploy start, it'll go over the individual flags in more detail. Directly quoting that documentation: -d | --source-dir SOURCE-DIR Optional ...
Derek F's user avatar
  • 60.9k
1 vote

Is it possible to deploy by filename using the new CLI?

Yes, the project deploy start command is the approximately equivalent command as force:source:deploy. See the force:source:deploy documentation for the list of differences between the two commands. -p,...
sfdcfox's user avatar
  • 487k
1 vote

Is there a CLI command to find all Test classes associated with a certain Apex class?

In theory, you can query MetadataComponentDependency, as each unit test will depend on the class that it calls, but you may end up with some false positives or negatives, because this object can only ...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

Is there a CLI command to find all Test classes associated with a certain Apex class?

No, there is not. About the closest thing we have to that is to run all tests in an org and then query data from the ApexCodeCoverage object in the Tooling API (and also the ApexClass object, so you ...
Derek F's user avatar
  • 60.9k
0 votes

How can I fix sfdx error: "The \"path\" argument must be of type string. Received type undefined"

I have package xml built with all the files. I tried several changes like deleting all the files from project and retrieving them again. Not sure what exactly worked, but it worked after I restarted ...
Venkata's user avatar
  • 99
2 votes
Accepted

sf project deploy preview shows conflicts, but files are identical

Source tracking works by grabbing the last modified time stamp from the file when you do a pull or push, and also tracks the timestamps of the local files. If the last known time stamp on the server ...
sfdcfox's user avatar
  • 487k
0 votes

SFDX: Retrieve Source from Org failed to run

When I ran into this issue, I had a file stored locally that didn't match what was in Production. I noticed this error in the Output tab: \force-app\main\default\flows\Loan_Flow.flow-meta-old.xml: ...
cesar3sparza's user avatar

Top 50 recent answers are included