Skip to content
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

provide an option to specify that the cli is being used in a non-interactive session #86

Closed
snowch opened this issue Dec 20, 2017 · 1 comment

Comments

@snowch
Copy link

snowch commented Dec 20, 2017

I frequently use the bx cli in scripts that don't have a human to interact with them. Occasionally, the sdk prompts for input which requires messy code to handle this interaction programatically.

An example prompt:

! bx login --apikey @'/mydir/myapikey.json'

Results in:

API endpoint: https://api.ng.bluemix.net
Authenticating...
OK
...
A new version of Bluemix CLI is available. Do you want to update? (yes/no) [yes]>

It would be great if I could tell the cli that I don't want these prompts. Here is one example from debian telling the cli that it shouldn't prompt for user input:

DEBIAN_FRONTEND=noninteractive apt-get ...

I think in terms of updating the bx cli, the default response should be 'no' in noninteractive mode.

@snowch
Copy link
Author

snowch commented Dec 20, 2017

It looks as though I can avoid the update prompt by running:

bx config --check-version false

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

No branches or pull requests

1 participant