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 that possible for me to just sync one file and ignore all the others?

  • How do you incision that working when to whole point of DX is that all the files are in sync ? I guess what is the use case here since it seems completely against the point of sfdx. – Eric Feb 1 '18 at 5:29
  • Disagree with Eric. Since SF reformats XML, you often have issues where profiles are showing as out of sync, and you have to do a --forceoverwrite pushing the whole org just to correct one file. – Shane May 27 at 14:26

Looks like this should be an idea under idea exchange for salesforce DX Product team .Currently don't think you can push one file and there are no commands supporting this .Salesforce DX is just not designed that way at this point although sounds like having a local staging like git to add and commit makes sense .

| improve this answer | |

Yes. Use the deploy command.

sfdx force:source:deploy --sourcepath /PATH/TO/YOUR/COMPONENT --json --loglevel fatal

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.