Skip to content

Setup Salesforce Deployment Assistant

Using sfdx-hardis CI/CD

If you are using sfdx-hardis CI/CD, you are already all set !

Just make sure to have configured your GitHub, Gitlab, Azure Pipelines or BitBucket integration so the deployment assistant can post its help in Pull Request comments.

If you want to supercharge Salesforce deployment assistant with AI, process sfdx-hardis AI setup.

Using custom CI/CD pipeline

Replace your calls to Salesforce CLI by calls to sfdx-hardis commands wrapper.

sfdx command Corresponding sfdx-hardis wrapper command
sf project deploy start sf hardis:project:deploy:start
sf project deploy validate sf hardis:project:deploy:validate
sf project deploy quick sf hardis:project:deploy:quick
sfdx force:source:deploy (removed on 6 november) sf hardis:source:deploy
sfdx force:source:push (removed on 6 november) sf hardis:source:push
sfdx force:mdapi:deploy (removed on 6 november) sf hardis:mdapi:deploy

Configure your GitHub, Gitlab, Azure Pipelines or BitBucket integration so the deployment assistant can post its help in Pull Request comments.

Notes:

  • sfdx-hardis deployment assistant currently do not support --json option. If you really need it please request it in sfdx-hardis GitHub issues !
  • there is no sfdx-hardis wrapper command yet for sf project deploy start. If you really need it please request it in sfdx-hardis GitHub issues !

Example

Replace:

sfdx force:source:deploy -x manifest/package.xml --checkonly

by

sf hardis:source:deploy -x manifest/package.xml --checkonly