How To Auto-Confirm SFDX Plugin installation from CI

Quick tip, if you are running the SFDX plugin installation commands in your script, .yaml file docker image for CI. You would be prompted to confirm. Since this is automated the easiest way to echo the confirmation.

Command:

sfdx plugins:install sfdx-git-delta

Result:

This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?:     

Simply update the script to:

echo 'y' | sfdx plugins:install sfdx-git-delta

Leave a Reply

Your email address will not be published. Required fields are marked *