Skip to content

CLI install extension command cannot run non-interactively #58434

@AdamVig

Description

@AdamVig
  • VSCode Version: 1.27.1
  • OS Version: MacOS 10.13.6

I have found that I am unable to reliably install extensions via the command line because of an update prompt that requires user interaction. A flag like --yes or --force or --update would be helpful in allowing the --install-extension command to run non-interactively.

Steps to Reproduce:

  1. code --install-extension yzhang.markdown-all-in-one (or any extension that has a newer version than the one you have installed)
  2. Prompt appears: Extension 'yzhang.markdown-all-in-one' v1.6.0 is already installed, but a newer version 1.6.1 is available in the marketplace. Would you like to update? Yes(0) | No(1)

Does this issue occur when all extensions are disabled?: Yes (CLI command)

Metadata

Metadata

Assignees

Labels

extensionsIssues concerning extensionsfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-cliVS Code Command line issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions