Skip to content

use -f to cf install-plugin #1941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

use -f to cf install-plugin #1941

wants to merge 1 commit into from

Conversation

qmacro
Copy link
Collaborator

@qmacro qmacro commented Jun 30, 2025

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:

; 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.

Using -f will bypass the prompt. I would say this is fine, it's what the user wants anyway.

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.
@qmacro qmacro requested a review from renejeglinsky as a code owner June 30, 2025 08:19
@renejeglinsky renejeglinsky requested a review from chgeo July 1, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant