How to deploy Source Format Git Branch meaning SFDX format into non-scratch org or full copy sandbox or production using jenkins?

  • You could convert it to metadata format and then deploy
    – kurunve
    Jun 11, 2020 at 5:34

2 Answers 2


Just use the sfdx force:source:deploy command, so if you're using the default path for your source it should be something like:

sfdx force:source:deploy --sourcepath force-app --targetusername yourSandboxOrProdUsername

You can see more about this command in the online documentation or by running sfdx force:source:deploy -h.

  • Thanks Fabien. We are currently using ant migration (old metadata format) with delta deployment from jenkins deployments . I am wondering if the sfdx can also be done in the same way. Jun 11, 2020 at 7:40
  • If you're on the old format, the command is sfdx force:mdapi:deploy, you can use a sourcepath or a package.xml file to specify what you want to deploy. Jun 11, 2020 at 7:53

create a jenkins script in your git repository, in this script you'll execute the SF deploy command. Create a job in jenkins that runs this script.

hope this helps,

good luck

  • Could you provide more details or examples?
    – nbrown
    Jun 11, 2020 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .