Skip to content

Setup Deployment Agent

Configure integrations

Make sure to have configured your GitHub, Gitlab, Azure Pipelines or BitBucket integration so Deployment Agent can post its help in Pull Request comments.

If you want to supercharge Deployment Agent with AI, follow sfdx-hardis AI setup.

You can also receive Slack, Ms Teams and Email notifications in case of successful deployment.

If you configure JIRA or Generic Ticketing integrations, ticket numbers will be extracted and displayed in the Pull Request comment.

If you want to automatically fix deployment errors using coding agents (Claude, Codex, Gemini, Copilot), see Coding Agent Auto-Fix setup.

Using sfdx-hardis CI/CD

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

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 Deployment Agent can post its help in Pull Request comments.

Notes:

  • sfdx-hardis Deployment Agent now works better with --json option, please use it.

Example

Replace:

sf project:deploy:start -x manifest/package.xml --checkonly

with:

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

Advanced example

Replace:

sf project deploy start --dry-run --source-dir force-app --ignore-warnings --ignore-conflicts --test-level RunLocalTests --coverage-formatters json-summary --verbose --wait 120 --json

with:

sf hardis project deploy start --dry-run --source-dir force-app --ignore-warnings --ignore-conflicts --test-level RunLocalTests --coverage-formatters json-summary --verbose --wait 120 --json

Not updating custom CI/CD pipeline

You don't want to update your calls to sf project deploy start ?

That's ok, you can't benefit from the error management, but you can benefit from the Flows Visual Git Diff and other integrations anyway !

Add the Notify command to your custom CI/CD pipeline !