use -f to cf install-plugin#1941
Merged
Merged
Conversation
If you copy/paste these three shell commands the effect won't be what the user expects, as without the `-f` option the `install-plugin` command will stop and prompt the user like this: ```shell ; cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org https://plugins.cloudfoundry.org already registered as CF-Community # /work/scratch/debugtest ; cf install-plugin multiapps Searching CF-Community for plugin multiapps... Plugin multiapps 3.5.0 found in: CF-Community Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk. Do you want to install the plugin multiapps? [yN]: cf install-plugin html5-plugin ``` i.e. the 3rd line `cf install-plugin html5-plugin` will be presented as the value at the "yN" prompt instead of being a separate command.
chgeo
approved these changes
Jul 2, 2025
renejeglinsky
approved these changes
Jul 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you copy/paste these three shell commands the effect won't be what the user expects, as without the
-foption theinstall-plugincommand will stop and prompt the user like this:i.e. the 3rd line
cf install-plugin html5-pluginwill be presented as the value at the "yN" prompt instead of being a separate command.Using
-fwill bypass the prompt. I would say this is fine, it's what the user wants anyway.