Add "-r, --noprompt" flag to sfdx plugins:install command
See original GitHub issueIs your feature request related to a problem? Please describe.
If I setup a Jenkins CI build and specify the “sfdx” as a custom tool, I would also want to install custom plugins that I have created to aid in the build process. Currently, there is no way to execute sfdx plugins:install foo-bar
without confirming the plugin installation since it is not digitally signed. Because of this, I cannot use the Jenkins Custom Tool plugin when I need specific custom SFDX CLI plugins as well.
What are you trying to do I need a way to dynamically setup the SFDX CLI and plugins that I want to install via the Jenkins custom tool option.
Describe the solution you’d like
I would like a “-r, --noprompt” flag be added to plugins:install
command so that I can automate on my CI builds the installation of the plugin after the installation of the SFDX CLI itself.
Describe alternatives you’ve considered I could manually install the SFDX CLI and the plugins on the Jenkins server and not utilize the “custom tool” option, but then I would not be able to dynamically spin up slave Jenkins instances as needed.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
Hello @ImJohnMDaniel A workarround to this issue:
echo y | sfdx plugins:install sfpowerkit
@ImJohnMDaniel there’s two other more elegant options I’d suggest.
plugins:link
you don’t get the code-signing check).unsignedPluginAllowList.json
. More info about that file here here: https://developer.salesforce.com/blogs/2017/10/salesforce-dx-cli-plugin-update.html1 is probably the better option for CI because your CI may get some npm-caching benefits and more granular control of which version of the plugin you’re running.